@php
    $src = $src ?? '';
    $alt = $alt ?? '';
    $size = (int) ($size ?? 72);
    $class = trim('cp-img-thumb ' . ($class ?? ''));
@endphp
@if(!empty($src))
    <img
        src="{{ $src }}"
        alt="{{ $alt }}"
        class="{{ $class }}"
        width="{{ $size }}"
        height="{{ $size }}"
        loading="lazy"
        decoding="async"
    />
@endif
