@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