@if(isset($user->country_id))
@php $cities = \DB::table('cities')->where('city_status',1)->where('country_id',$user->country_id)->get();;
@endphp
@else
@php
$cities = \DB::table('cities')->where('city_status',1)->get();;
@endphp
@endif
@if(!empty($user->trade_licence_doc))
@php
$fileExtension = pathinfo($user->trade_licence_doc, PATHINFO_EXTENSION);
@endphp
@if(in_array($fileExtension, ['jpg', 'jpeg', 'png', 'gif']))
 }})
@elseif(in_array($fileExtension, ['pdf', 'doc', 'docx']))
View Document
@endif
@endif