@php
$filePath = $getRecord()->file_ktp;
$extension = pathinfo($filePath, PATHINFO_EXTENSION);
@endphp
@if (in_array($extension, ['pdf', 'jpg', 'jpeg', 'png']))
@php $url = asset('storage/' . $filePath); @endphp
Lihat file_ktp
@else
{{ $getRecord()->file_ktp }} Tidak Ada file_ktp
@endif