@extends('admin.MainComponent') @section('content')
| Order ID | Customer | Total | Status | Payment | Date | Actions | |
|---|---|---|---|---|---|---|---|
| #{{ $order->partitionId ?? $order->id }} |
@if($order->client?->avatar)
{{ $order->buyerName ?? $order->client?->name ?? 'Guest' }}{{ $order->client?->phone ?? 'N/A' }} |
{{ $order->total }} @if($order->additionPrice) +{{ $order->additionPrice }} additions @endif | @php $statusClass = [ 'pending' => 'warning', 'completed' => 'success', 'cancelled' => 'danger' ][$order->status] ?? 'info'; @endphp {{ ucfirst($order->status) }} | @if($order->is_paid) Paid @else Unpaid @endif |
{{ $order->created_at->format('M d, Y') }}
{{ $order->created_at->diffForHumans() }}
|
||
No orders foundTry adjusting your search or filter criteria |
|||||||