{{ __('Gallery') }} {{-- داشبورد--}}

@foreach($images as $image)
@if (in_array(strtolower($image->type ?? pathinfo($image->path,PATHINFO_EXTENSION)),['png','jpg','gif','jpeg'])) @else

{{strtoupper($image->type)}}
{{pathinfo($image->path,PATHINFO_DIRNAME)}} /{{pathinfo($image->path,PATHINFO_BASENAME)}}

@endif
@endforeach