@csrf @method('PUT') @forelse ($dependents as $key => $leadDependent)

Dependent: {{ $leadDependent->fullName }}

@if ($loop->first) @else @endif

@error('dependent.'.$key.'.first_name')
{{ $message }}
@enderror
@error('dependent.'.$key.'.middle_name')
{{ $message }}
@enderror
@error('dependent.'.$key.'.last_name')
{{ $message }}
@enderror

@error('dependent.'.$key.'.dob')
{{ $message }}
@enderror
@error('dependent.'.$key.'.age')
{{ $message }}
@enderror
@error('dependent.'.$key.'.email')
{{ $message }}
@enderror
is_address_same_as_contact == 1) style="display: none;" @endif>

{{-- --}}

{{-- --}}
{{-- --}}

@include('modules.leads.includes.upload-document', [ 'linkedEntity' => 'dependent', 'linkedEntityId' => $leadDependent->id, 'key' => $key, 'leadId' => $lead->id, 'documentTypes' => $documentTypes ]) @php $dependentDocuments = $lead->attachments()->where('linked_entity', 'dependent')->where('linked_entity_id', $leadDependent->id)->paginate(10); @endphp
@if ($documents->count() > 0) @include('modules.leads.includes.document-list-dependent', [ 'documents' => $dependentDocuments ]) @endif
@empty

@error('dependent.1.first_name')
{{ $message }}
@enderror
@error('dependent.1.middle_name')
{{ $message }}
@enderror
@error('dependent.1.last_name')
{{ $message }}
@enderror
@error('dependent.1.relationship')
{{ $message }}
@enderror
@error('dependent.1.gender')
{{ $message }}
@enderror

@error('dependent.1.dob')
{{ $message }}
@enderror
@error('dependent.1.age')
{{ $message }}
@enderror
@error('dependent.1.email')
{{ $message }}
@enderror

{{-- --}}

{{-- USCIS Number, format is A123456789 --}}
{{-- I-94 / I-94A Arrival / Departure Record # --}}
@endforelse