Preview Cetak Pricelist Menu
@if(!empty($storeLogo)) @endif
{{ $storeName }}
Cabang: {{ $selectedBranch->name ?? 'Semua Cabang' }} @if(!empty($storeAddress)) • {{ $storeAddress }} @endif @if(!empty($storePhone)) • Telp: {{ $storePhone }} @endif

PRICELIST MENU

TANGGAL: {{ \Carbon\Carbon::parse($date)->translatedFormat('d F Y') }}

@if($groupedProducts->isEmpty())

Belum Ada Menu Yang Tersedia

@else @php $leftCatKeys = []; $rightCatKeys = []; $leftWeight = 0; $rightWeight = 0; foreach ($groupedProducts as $catName => $products) { $weight = $products->count() + 3; if ($leftWeight <= $rightWeight) { $leftCatKeys[] = $catName; $leftWeight += $weight; } else { $rightCatKeys[] = $catName; $rightWeight += $weight; } } @endphp
@foreach($leftCatKeys as $catName) @php $products = $groupedProducts[$catName]; @endphp
{{ $catName }} {{ $products->count() }} item
@foreach($products as $product) @endforeach
@endforeach
@foreach($rightCatKeys as $catName) @php $products = $groupedProducts[$catName]; @endphp
{{ $catName }} {{ $products->count() }} item
@foreach($products as $product) @endforeach
@endforeach
@endif