@php $extension = Util::checkExtension($file); $file_url = Util::linkFile($sub_folder, $file); @endphp @php $urlGets = url()->full(); $path = parse_url($urlGets, PHP_URL_PATH); $segments = explode('/', trim($path, '/')); use Carbon\Carbon; $tanggalInput = Carbon::parse($created_at); $tanggalPembanding = Carbon::create(2025, 11, 25); if ($tanggalInput->gt($tanggalPembanding)) { $display = 'display: all;'; } else { $display = 'display: none;'; } @endphp @if ($extension == 'image') @else @if (isset($size) && $size == 'small')
@if($sub_folder == 'mcu-document')
Document {{$nomor}}
@endif
{{ $file_name ?? '' }} @if(isset($segments[1]) && in_array($segments[1], ['detail', 'edit'])) Upload date: {{ $created_at ?? '' }} @endif
@if(in_array($sub_folder, ['mcu-document', 'document-competency'])) @if($segments[1]=='detail') @if($approved == 1)
Approved
@else
Not Approved
@endif @else @role('dokter') {{-- --}}
@endrole @endif @endif @include('components.button.button-download-file', [ 'file_url' => $file_url, 'file_name' => $employee_name . '_' . $file_name, 'employee_id' => $employee_id ?? $user->id, ])
@role('admin_contractor') @if($segments[1]=='edit')
Valid Until: {{ date('d F Y', strtotime($valid_until)) }}
@endif @endrole @role('dokter') @if($segments[1] != 'detail' && $segments[1] != 'edit-visitor')
Note Document {{$nomor}}
Valid Until Document {{$nomor}}
@endif @endrole @if($sub_folder === 'mcu-document') @if($segments[1]=='detail')
Note Document {{$nomor}}
{!! $note_mcu !!}
@endif @endif @if(in_array($sub_folder, ['mcu-document', 'document-competency'])) @if($segments[1]=='detail')
Valid Until
  @if($valid_until) {{ date('d F Y', strtotime($valid_until)) }} @else __________ @endif
@endif @endif
@else

{{ $file_name ?? '' }}.pdf

@include('components.button.button-download-file', [ 'file_url' => $file_url, 'file_name' => $employee_name . '_' . $file_name, 'employee_id' => $employee_id ?? $user->id, ])
@endif @endif @if($file_name) @endif