@if(!empty($result-> text_back_ground))
{{ $result-> caption}}
@endif @foreach($result->postImage as $image)
@php $fileName = $image->postFileUrl; $fileNameParts = explode('.', $fileName); $ext = end($fileNameParts); @endphp @if ($ext == "jpg" || $ext == "png" || $ext == "webp" || $ext == "jpeg")
@else @endif
@endforeach