@if ($data['src'])
@php
$extension = pathinfo($data['src'], PATHINFO_EXTENSION);
$allowedImageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'webp'];
$isImage = in_array(strtolower($extension), $allowedImageExtensions);
@endphp
@if ($isImage)
@else
@endif
@endif