@if($customer->passport_copy)
@php $passport = json_decode($customer->passport_copy); @endphp
@if($passport && isset($passport->url))
@php $ext = pathinfo($passport->url, PATHINFO_EXTENSION); @endphp
@if(in_array(strtolower($ext), ['jpg','jpeg','png','gif']))

@elseif(strtolower($ext) === 'pdf')
@endif
Download
@else
![]()
@endif
@else
![]()
@endif