{{-- Header --}}
{{-- Category Filter --}}
@foreach($this->categories as $category) @endforeach
{{-- Products Grid --}}
@forelse($this->products as $product)
@if($product->image) {{ $product->name }} @else {{ $product->category?->icon ?? '📦' }} @endif
{{ $product->name }}

Stok: {{ $product->stock }}

Rp {{ number_format($product->sellPrice, 0, ',', '.') }}
@if($product->isConsignment) 📦 Titipan @endif
@empty
📦

Tidak ada produk ditemukan

@endforelse
{{-- Cart Sidebar --}} {{-- Mobile Bottom Bar --}}

Total Item: {{ $this->cartItemCount }}

Rp {{ number_format($this->cartTotal, 0, ',', '.') }}

{{-- Payment Modal --}}

Pembayaran

{{-- Total --}}

Total Bayar

Rp {{ number_format($this->cartTotal, 0, ',', '.') }}

{{-- Payment Method --}}
@if($selectedMember) @php $memberBalance = \App\Models\Member::find($selectedMember['id'])?->simpananSukarela ?? 0; $hasEnoughBalance = $memberBalance >= $this->cartTotal; @endphp @endif
{{-- Cash Input --}} @if($paymentMethod === 'CASH')
@foreach([10000, 20000, 50000, 100000] as $amount) @endforeach
{{-- Change --}} @if($cashReceived >= $this->cartTotal)

Kembalian

Rp {{ number_format($this->change, 0, ',', '.') }}

@endif @endif {{-- Actions --}}
{{-- Success Toast --}} @if($lastInvoice)
✅ Transaksi Berhasil: {{ $lastInvoice }}
@endif