@extends('admin.layouts.main') @section('title', 'Orders') @section('menu', 'Orders') @section('content')
| Order # | Client | Total | Status | Date | Actions |
|---|---|---|---|---|---|
| {{ $order->order_number }} | @if($order->user) {{ $order->user->first_name }} {{ $order->user->last_name }} @else N/A @endif | {{ number_format($order->total, 2) }} {{ $order->currency_code }} | @php $badgeClass = match($order->status) { 'completed' => 'success', 'pending' => 'warning', 'cancelled' => 'danger', 'fraud' => 'dark', default => 'secondary', }; @endphp {{ ucfirst($order->status) }} | {{ $order->created_at->format('M d, Y') }} | |
| No orders found | |||||