@extends('layouts.app') @section('title', 'Orders Management') @section('content')
| Invoice Number | Customer | Phone | Shipping Address | City | Province | Postal Code | Order Status | Payment Status | Total | Order Date | Actions |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $order->invoice_number }} | {{ $order->customer_name }} | {{ $order->customer_phone }} | {{ \Illuminate\Support\Str::limit($order->shipping_address, 30) }} | {{ $order->city }} | {{ $order->province }} | {{ $order->postal_code }} | @php $statusClass = [ 'pending' => 'warning', 'processing' => 'info', 'shipped' => 'primary', 'delivered' => 'success', 'cancelled' => 'danger' ][$order->order_status] ?? 'secondary'; @endphp {{ ucfirst($order->order_status) }} | @php $paymentClass = [ 'pending' => 'warning', 'paid' => 'success', 'failed' => 'danger' ][$order->payment_status] ?? 'secondary'; @endphp {{ ucfirst($order->payment_status) }} | Rp {{ number_format($order->total_amount, 0, ',', '.') }} | {{ $order->created_at->format('d M Y H:i') }} | |
|
No orders found |
|||||||||||