@php
$nomor = 1;
@endphp
{{-- @php
$mcuFiles = collect(optional($user->employeeMcu)->fileMcu ?? [])
->sortByDesc('created_at')
->unique('document_name')
->values();
@endphp --}}
@foreach ($user->employeeMcu->fileMcu ?? [] as $item)
@include('components.util.show-file', [
'file' => $item->document_hash_name,
'idFileMcu' => $item->id,
'sub_folder' => 'mcu-document',
'file_name' => $item->document_name,
'employee_name' => $user->name,
'size' => 'small',
'nomor' => $nomor,
'approved' => '',
'note_mcu' => '',
'valid_until' => $item->valid_until,
'created_at' => date('d F Y', strtotime($item->created_at)),
])
@php $nomor++; @endphp
@endforeach
@endif
@include('components.button.card-button-next-prev', [
'prev' => true,
'next' => true,
'id' => 'medical_checkup',
])