Outlet: {{ $order->outlet->name ?? 'N/A' }}
Meja: {{ $order->table->table_number ?? 'N/A' }}
Tipe Pesanan: {{ ucfirst($order->order_type) }}
Status Pesanan: {{ $statusOrderIndo[$order->status] ?? ucfirst($order->status) }}
Catatan: {{ $order->note ?? '-' }}
Waktu Pesan: {{ $order->ordered_at->format('d F Y, H:i') }}
@if($order->completed_at)Waktu Selesai: {{ $order->completed_at->format('d F Y, H:i') }}
@endif @if($order->status === 'cancelled')Promo: {{ $order->promotion->code }} - {{ $order->promotion->name }}
@endifMetode: {{ $payment->method }}
Jumlah: Rp {{ number_format($payment->amount, 2, ',', '.') }}
Status: {{ ucfirst($payment->status) }}
@if($payment->paid_at)Waktu Bayar: {{ $payment->paid_at->format('d F Y, H:i') }}
@endif @if($payment->payment_gateway_ref)Ref. Pembayaran: {{ $payment->payment_gateway_ref }}
@endifBelum ada informasi pembayaran.
@endif{{ $order->ordered_at->format('d/m/Y H:i') }}
Pembayaran diterima, pesanan dikonfirmasi
Dapur sedang menyiapkan pesanan Anda
Pesanan siap diantar ke meja Anda
Pesanan sudah diantar ke meja Anda
{{ $order->completed_at ? $order->completed_at->format('d/m/Y H:i') : 'Pesanan selesai' }}
Pesanan telah dibatalkan
Tidak ada item dalam pesanan ini.
@elseProduk | Kuantitas | Harga Satuan | Subtotal Item |
---|---|---|---|
{{ $item->product->name ?? 'Produk Dihapus' }} | {{ $item->quantity }} | Rp {{ number_format($item->price_at_order, 2, ',', '.') }} | Rp {{ number_format($item->price_at_order * $item->quantity, 2, ',', '.') }} |
Subtotal Pesanan: | Rp {{ number_format($order->subtotal, 2, ',', '.') }} | ||
Diskon ({{ $order->promotion->code }}): | - Rp {{ number_format($order->discount_amount ?? ($order->promotion->discount_type === 'percentage' ? ($order->subtotal * $order->promotion->discount_value / 100) : $order->promotion->discount_value), 2, ',', '.') }} | ||
Setelah Diskon: | Rp {{ number_format(max(0, $order->subtotal - ($order->discount_amount ?? ($order->promotion->discount_type === 'percentage' ? ($order->subtotal * $order->promotion->discount_value / 100) : $order->promotion->discount_value))), 2, ',', '.') }} | ||
Biaya Layanan: | Rp {{ number_format($order->additional_fee, 2, ',', '.') }} | ||
Pajak: | Rp {{ number_format($order->other_fee, 2, ',', '.') }} | ||
Total Akhir: | Rp {{ number_format($order->total_amount, 2, ',', '.') }} |