@foreach ($cards as $c)
@php
$image = check_file('');
if (!empty($c['gallery'][0])) {
foreach ($c['gallery'] as $g) {
if (!str_contains($g['image'], '.mp4')) {
$image = !empty($g['image']) ? check_file(asset($g['image'])) : check_file('');
break;
}
}
}
@endphp
@endforeach
@if ($page_total > 1)
@php
$label = __('frontend::lang.pagination.label.products');
@endphp
@endif