@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
@foreach($order->details as $detail) @endforeach
Nama Produk Jumlah Harga Subtotal
{{ $detail->product->name }} {{ $detail->qty }} Rp {{ number_format($detail->price,0,',','.') }} Rp {{ number_format($detail->qty * $detail->price,0,',','.') }}
Back
@endsection