@extends('layouts.admin') @section('title', 'Detail Pesanan #' . $order->order_number) @section('content')
Tanggal Transaksi: {{ $order->created_at->format('d F Y, H:i') }} WIB
| # | Produk | Harga Satuan | Quantity | Subtotal |
|---|---|---|---|---|
| {{ $index + 1 }} |
@if($item->product)
{{ $item->product->name }}
@else
{{ 'Produk #' . $item->product_id . ' (Dihapus)' }}
@endif
@if($item->product && $item->product->category)
Kategori: {{ $item->product->category->name }}
@endif
|
Rp {{ number_format($item->price, 0, ',', '.') }} | × {{ $item->quantity }} | Rp {{ number_format($item->subtotal, 0, ',', '.') }} |
| Total Item: | {{ $order->orderItems->sum('quantity') }} pcs | Rp {{ number_format($order->total_price, 0, ',', '.') }} | ||