@php $filePath = $getRecord()->bukti_foto; $extension = pathinfo($filePath, PATHINFO_EXTENSION); @endphp @if (in_array($extension, ['pdf', 'jpg', 'jpeg', 'png'])) @if ($extension === 'pdf') @else @endif @else {{ $getRecord()->bukti_foto }} @endif