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])