@php // Assuming get_file returns an array or collection with file paths // Here we check if there is a file path and if it's an image type $imageExtensions = ['png', 'jpeg', 'jpg']; $imagePath = ''; // Default empty path if (isset($imageUrl)) { // Extract file extension from the image URL $imageExtension = pathinfo($imageUrl, PATHINFO_EXTENSION); // Check if the file extension is one of the accepted types if (in_array(strtolower($imageExtension), $imageExtensions)) { $imagePath = $imageUrl; } } @endphp @if ($imagePath) Logo @else

No valid image available.

@endif