@include('modules.leads.includes.upload-document', [ 'linkedEntity' => 'information', 'linkedEntityId' => null, 'key' => random_int(1000, 9999), 'leadId' => $lead->id, 'documentTypes' => $documentTypes, 'is_all' => true ])
@if ($leadDocuments->data->count() > 0) @include('modules.leads.includes.pagination_search', [ 'documentTypes' => $documentTypes, 'paging' => $leadDocuments->paging ])

Attachments

@foreach ($leadDocuments->data as $item)
{{ $item->document_type}} - {{ strtoupper($item->linked_entity) }} @if($item->linked_entity_id && $item->linked_entity == 'dependent') ({{ $item->entity?->id }}) @elseif($item->linked_entity_id && $item->linked_entity == 'opportunity') ({{ $item->entity?->opportunity_code }}) @elseif($item->linked_entity_id && $item->linked_entity == 'policy') ({{ $item->entity?->code }}) @endif
{{ $item->note }}
@endforeach
@includeWhen(($leadDocuments->paging->total_count > 2), 'modules.leads.includes.pagination-custom', ['page' => $leadDocuments->data])
@endif