@if ($ready) {{-- Header untuk informasi meja dan outlet --}}
{{-- Sembunyikan di mobile --}}

Pesan dari Meja: {{ $table->table_number }} ({{ $outlet->name }})

{{-- Tampilkan hanya di mobile --}}

Meja {{ $table->table_number }} ({{ $outlet->name }})

{{-- Toast Notifications --}}
{{-- Konten Utama (Tab) --}}
{{-- Tab Menu --}} {{-- Tab Keranjang --}}
Keranjang Anda
@if (empty($cart))

Keranjang kosong.

@else
    @foreach ($cart as $item) @if(isset($item['product_id']) && isset($item['name']) && isset($item['price']) && isset($item['quantity']))
  • {{-- Desktop Layout --}}
    {{ $item['name'] }}
    Rp {{ number_format($item['price'], 0, ',', '.') }}
    Rp {{ number_format($item['price'] * $item['quantity'], 0, ',', '.') }}
    {{-- Mobile Layout --}}
    {{ $item['name'] }}
    Rp {{ number_format($item['price'], 0, ',', '.') }}
    Rp {{ number_format($item['price'] * $item['quantity'], 0, ',', '.') }}
  • @endif @endforeach
Subtotal: Rp {{ number_format($subtotal, 0, ',', '.') }}
@if ($appliedPromotion)
Diskon ({{ $appliedPromotion->code }}): - Rp {{ number_format($discountAmount, 0, ',', '.') }}
Setelah Diskon: Rp {{ number_format(max(0, $subtotal - $discountAmount), 0, ',', '.') }}
@endif
Pajak (10%): Rp {{ number_format($taxAmount, 0, ',', '.') }}
Biaya Layanan (5%): Rp {{ number_format($serviceFee, 0, ',', '.') }}
Total: Rp {{ number_format($totalAmount, 0, ',', '.') }}
@endif
{{-- Tab Checkout / Konfirmasi --}}
{{-- Ringkasan Keranjang di Tab Checkout --}}
Ringkasan Pesanan
@if (empty($cart))

Keranjang kosong. Silakan kembali ke menu untuk memilih produk.

@else
    @foreach ($cart as $item) @if(isset($item['product_id']) && isset($item['name']) && isset($item['price']) && isset($item['quantity']))
  • {{ $item['name'] }}
    {{ $item['quantity'] }} x Rp {{ number_format($item['price'], 0, ',', '.') }}
    Rp {{ number_format($item['price'] * $item['quantity'], 0, ',', '.') }}
  • @endif @endforeach
Subtotal: Rp {{ number_format($subtotal, 0, ',', '.') }}
@if ($appliedPromotion)
Diskon ({{ $appliedPromotion->code }}): - Rp {{ number_format($discountAmount, 0, ',', '.') }}
Setelah Diskon: Rp {{ number_format(max(0, $subtotal - $discountAmount), 0, ',', '.') }}
@endif
Pajak (10%): Rp {{ number_format($taxAmount, 0, ',', '.') }}
Biaya Layanan (5%): Rp {{ number_format($serviceFee, 0, ',', '.') }}
Total Pembayaran: Rp {{ number_format($totalAmount, 0, ',', '.') }}
@endif
{{-- Form Promo --}}
Kode Promo
{{-- Info Diri Pelanggan (hanya untuk tamu) --}} @guest
Informasi Diri
@error('guestName')
{{ $message }}
@enderror
@error('guestEmail')
{{ $message }}
@enderror
@error('guestPhone')
{{ $message }}
@enderror
@endguest {{-- Metode Pembayaran dan Catatan --}}
Pembayaran dan Catatan
@error('paymentMethod')
{{ $message }}
@enderror
@error('orderNote')
{{ $message }}
@enderror
{{-- Tombol Submit --}}
{{-- Footer Navigasi Mobile --}} @endif
{{-- Animasi CSS tambahan --}} @push('styles') @endpush @push('scripts') @endpush