@php $cols = $sizeConfig['cols']; $rows = $sizeConfig['rows']; $totalPages = ceil($totalStickers / $perPage); $brandLogoPath = public_path('build/custom/khayl-logo.png'); $hasBrandLogo = file_exists($brandLogoPath); $productImagePath = $product->image_path ? public_path('storage/' . $product->image_path) : null; $hasProductImage = $productImagePath && file_exists($productImagePath); @endphp
@php $idx = 0; @endphp @for($p = 0; $p < $totalPages; $p++)
@if($hasBrandLogo)
|
@else
@endif @php $idx++; @endphp @endfor |