@extends('layouts.admin') @section('title', 'Kelola Pesanan') @section('page-title', 'Kelola Pesanan') @section('admin_content')
| No. Pesanan | Pelanggan | Total | Status | Pembayaran | Tanggal | Aksi |
|---|---|---|---|---|---|---|
| {{ $order->order_number }} | {{ $order->customer_name }} | Rp {{ number_format($order->total, 0, ',', '.') }} | @php $statusClass = match($order->status) { 'pending' => 'admin-badge-pending', 'processing' => 'admin-badge-processing', 'completed' => 'admin-badge-completed', 'cancelled' => 'admin-badge-cancelled', default => 'admin-badge-pending' }; @endphp {{ ucfirst($order->status) }} | {{ $order->payment_status === 'paid' ? 'Dibayar' : 'Pending' }} | {{ $order->created_at->format('d M Y H:i') }} | |
| Belum ada pesanan. | ||||||