@php
$class = $class ?? '';
$file = $file ?? null;
if (! $file && ! empty($name)) {
$file = \App\Support\ScreenshotGallery::resolve($name);
}
$hasImg = $file && \App\Support\ScreenshotGallery::isUsable(public_path('screenshots/'.$file));
@endphp
@if ($hasImg)
@else