@extends('admin.layouts.app') @section('title', __('All Orders')) @section('breadcrumb')
{{ __('Manage and track all customer orders') }}
|
{{ __('Order #') }} | {{ __('Customer') }} | {{ __('Status') }} | {{ __('Payment') }} | {{ __('Total') }} | {{ __('Items') }} | {{ __('Date') }} | {{ __('Actions') }} |
---|---|---|---|---|---|---|---|---|
|
{{ $order->order_number }}
@if($order->tracking_number)
{{ $order->tracking_number }} @endif |
{{ $order->customer_name }}
{{ $order->customer_email }}
{{ $order->customer_phone }} |
{!! $order->status_badge !!}
|
@switch($order->payment_status)
@case('paid')
{{ __('Paid') }}
@break
@case('pending')
{{ __('Pending') }}
@break
@case('failed')
{{ __('Failed') }}
@break
@case('refunded')
{{ __('Refunded') }}
@break
@default
{{ ucfirst($order->payment_status) }}
@endswitch
{{ ucfirst($order->payment_method) }} |
{{ $order->formatted_total }}
@if($order->discount_amount > 0)
-{{ number_format($order->discount_amount, 2) }} {{ __('SAR') }} @endif |
{{ $order->items->count() }} |
{{ $order->created_at->format('M j, Y') }}
{{ $order->created_at->format('g:i A') }}
{{ $order->created_at->diffForHumans() }} |
|
{{ __('No orders found') }}@if(request()->hasAny(['search', 'status', 'payment_status', 'date_from', 'date_to'])) {{ __('Try adjusting your filters to see more results.') }} @else {{ __('Orders will appear here once customers start placing them.') }} @endif |