@extends('layouts.admin') @section('title', 'Detail Pesanan ' . $order->order_number) @section('styles') @endsection @section('content') {{-- ── Breadcrumb + Header ─────────────────────────────── --}} @php $statusMap = [ 'pending' => ['warning', 'clock', 'Pending'], 'processing' => ['info', 'gear', 'Diproses'], 'shipped' => ['primary', 'truck', 'Dikirim'], 'completed' => ['success', 'check-circle', 'Selesai'], 'cancelled' => ['danger', 'x-circle', 'Dibatalkan'], ]; $sc = $statusMap[$order->status] ?? ['secondary', 'question', $order->status]; @endphp
{{ $order->order_number }}
| Produk | Kategori | Harga Satuan | Qty | Subtotal |
|---|---|---|---|---|
|
{{-- Gambar Produk --}}
@if($item->product && $item->product->image)
{{ $item->product_name }}
@if($item->product)
SKU: {{ $item->product->sku ?? '-' }}
@else
Produk dihapus
@endif
|
{{ $item->product?->category?->name ?? '-' }} | Rp {{ number_format($item->price, 0, ',', '.') }} | {{ $item->quantity }} | Rp {{ number_format($item->subtotal, 0, ',', '.') }} |
| Subtotal Produk | Rp {{ number_format($order->subtotal, 0, ',', '.') }} | |||
| Ongkos Kirim | {{ $order->shipping_fee > 0 ? 'Rp ' . number_format($order->shipping_fee, 0, ',', '.') : 'Gratis' }} | |||
| Diskon | − Rp {{ number_format($order->discount, 0, ',', '.') }} | |||
| Total Pembayaran | Rp {{ number_format($order->total, 0, ',', '.') }} | |||