@if ($media) @if (str($media->type)->contains('image')) filter(fn ($attr) => $attr !== '') }} /> @else merge(['class' => 'p-4']) }} /> @endif @endif