@if($image) @php $path = parse_url($image, PHP_URL_PATH); $extension = strtolower(pathinfo($path, PATHINFO_EXTENSION)); $isPdf = $extension === 'pdf' || str_contains(strtolower($image), '.pdf'); @endphp @if($isPdf) @else preview-image @endif @else
لا توجد صورة
@endif