@extends('layouts.admin') @section('title', 'Detail Pesanan #' . $order->order_number) @section('page_title', 'Detail Pesanan') @section('breadcrumb') Pesanan / {{ $order->order_number }} @endsection @section('topbar_actions') Kembali @endsection @section('content') @if($errors->any())
{{ $order->orderItems->count() }} macam produk, total {{ $order->orderItems->sum('quantity') }} unit
| Produk | Harga Satuan | Qty | Subtotal |
|---|---|---|---|
|
@if($item->product && $item->product->image)
@php
$orderItemImg = \Illuminate\Support\Str::startsWith($item->product->image, ['http://', 'https://'])
? $item->product->image
: asset('storage/' . $item->product->image);
@endphp
{{ $item->product_name }}
@if($item->product)
Stok terkini: {{ $item->product->stock }} unit
@endif
|
Rp {{ number_format($item->price, 0, ',', '.') }} | {{ $item->quantity }} | Rp {{ number_format($item->subtotal, 0, ',', '.') }} |
| Total Pembayaran: | Rp {{ number_format($order->total, 0, ',', '.') }} | ||
{{ $order->shipping_address ?: 'Alamat pengiriman belum diisi oleh pembeli.' }}