@php $isSmallPaper = $paperSize === '30x40'; @endphp @php $isQrBarcode = $barcodeType === 'QR'; @endphp @foreach($products as $product) @for($i = 0; $i < $quantity; $i++)
@if($paperSize === '30x40' && $isQrBarcode)

{{ strtoupper($product->name) }}

@if(!empty($printerLogo)) @else
{{ $storeName ?? 'ABBA BENDO' }}
@endif
Rp. {{ number_format($product->price ?? 0, 0, ',', '.') }}
@else

Rp {{ number_format($product->price ?? 0, 0, ',', '.') }}

{{ $product->name }}

@if(!empty($notes))

{{ $notes }}

@elseif(!empty($product->notes))

{{ $product->notes }}

@endif
@if($isQrBarcode)
@else @endif
{{ preg_replace('/^ABBA/i', '', $product->barcode ?? '') }}
@endif
@endfor @endforeach