@if($relationship->dependent->media_gallery[0] ?? false)
+
{{ strtoupper(substr($relationship->dependent->full_name, 0, 1)) }}
@endif
@@ -181,18 +178,13 @@
- @if($relationship->dependent->mobile)
- {{ $relationship->dependent->mobile }}
+ {{ $relationship->dependent->mobile_formatted ?: ($user->mobile_formatted ?: 'Not provided') }}
+ @if(!$relationship->dependent->mobile_formatted && $user->mobile_formatted)
+ Guardian's
+ @endif
- @elseif($user->mobile)
-
-
- {{ $user->mobile }}
- Guardian's
-
- @endif
@if($relationship->dependent->email)
@@ -268,9 +260,8 @@
-
-
- {{ strtoupper($relationship->relationship_type) }} : {{ strtoupper($user->full_name) }}
+
+ {{ $relationship->relationship_type === 'spouse' ? 'WIFE' : strtoupper($relationship->relationship_type) }}
diff --git a/resources/views/family/edit.blade.php b/resources/views/family/edit.blade.php
index 4acea0b..d1276d3 100644
--- a/resources/views/family/edit.blade.php
+++ b/resources/views/family/edit.blade.php
@@ -44,9 +44,23 @@
-
+
+
+
+
+
+
@error('mobile')
-
{{ $message }}
+
{{ $message }}
+ @enderror
+ @error('mobile_code')
+
{{ $message }}
@enderror
@@ -179,7 +193,7 @@
-
+
@@ -200,7 +214,7 @@
-
+
@@ -308,4 +322,73 @@ document.addEventListener('DOMContentLoaded', function() {
}
});
+
+@push('scripts')
+
+@endpush
@endsection
diff --git a/resources/views/family/profile-edit.blade.php b/resources/views/family/profile-edit.blade.php
index 6796b43..176bd9e 100644
--- a/resources/views/family/profile-edit.blade.php
+++ b/resources/views/family/profile-edit.blade.php
@@ -44,9 +44,23 @@
-
+
+
+
+
+
+
@error('mobile')
-
{{ $message }}
+
{{ $message }}
+ @enderror
+ @error('mobile_code')
+
{{ $message }}
@enderror
@@ -174,7 +188,7 @@
Cancel
-
+