@props(['src' => null, 'type' => 'default', 'alt' => '']) @php $resolvedSrc = image_url($src, $type); $fallbackSrc = placeholder_image_url($type); @endphp {{ $alt }}merge(['class' => 'safe-img']) }} @if ($resolvedSrc !== $fallbackSrc) onerror="this.onerror=null;this.src='{{ $fallbackSrc }}';" @endif />