@php
    $src = $src ?? '';
    $alt = $alt ?? '';
    $class = $class ?? '';
    $loading = $loading ?? 'lazy';
    $decoding = $decoding ?? 'async';
    $responsive = $responsive ?? false;
    $width = $width ?? null;
    $height = $height ?? null;
    $fetchpriority = $fetchpriority ?? null;
    $sizes = $sizes ?? null;
    $srcset = $srcset ?? null;
@endphp
@if (!empty($src))
    {!! premium_picture_tag([
        'src' => $src,
        'alt' => $alt,
        'class' => $class,
        'loading' => $loading,
        'decoding' => $decoding,
        'width' => $width,
        'height' => $height,
        'fetchpriority' => $fetchpriority,
        'sizes' => $sizes,
        'srcset' => $srcset,
        'responsive' => $responsive,
    ]) !!}
@endif
