@extends('layout.main')
@section('title', 'Detail Pesanan')
@section('content')
Customer: {{ $order->customer_name }}
No Telp: {{ $order->customer_phone ?? '-' }}
Status: {{ ucfirst($order->status) }}
Total Harga: Rp {{ number_format($order->total_price,0,',','.') }}
Tanggal Pesan: {{ \Carbon\Carbon::parse($order->order_date)->format('d F Y') }}
@if($order->status === 'scheduled')
Tanggal Ambil: {{ \Carbon\Carbon::parse($order->pickup_date)->format('d F Y') }}
@endif
Products
| Nama Produk |
Jumlah |
Harga |
Subtotal |
@foreach($order->details as $detail)
| {{ $detail->product->name }} |
{{ $detail->qty }} |
Rp {{ number_format($detail->price,0,',','.') }} |
Rp {{ number_format($detail->qty * $detail->price,0,',','.') }} |
@endforeach
Back
@endsection