@if(!$showOrderSuccess)

Checkout

Konfirmasi pesanan Anda

@php $images = is_string($menu->images) ? json_decode($menu->images, true) : $menu->images; $firstImage = is_array($images) && !empty($images) ? $images[0] : null; @endphp @if($firstImage) {{ $menu->name }} @else
@endif

{{ $menu->name }}

{{ $menu->description }}

Rp {{ number_format($menu->price, 0, ',', '.') }} @if($menu->kategori && $menu->kategori->name) {{ $menu->kategori->name }} @endif
Pilih Jumlah @error('quantity') {{ $message }} @enderror
@error('description') {{ $message }} @enderror
Total Pembayaran: Rp {{ number_format($totalPrice, 0, ',', '.') }}
{{ $quantity }} item × Rp {{ number_format($menu->price, 0, ',', '.') }}
@if (session()->has('error'))
{{ session('error') }}
@endif
@else

Pesanan Berhasil!

Terima kasih! Pesanan Anda telah berhasil diproses dan sedang dalam tahap persiapan.

ID Pesanan #{{ $orderId }}
Status Pending
Item {{ $menu->name }}
Total Rp {{ number_format($this->totalPrice, 0, ',', '.') }}
@endif