@push('title') Order Management @endpush
@if (session('success')) @endif @if (session('info')) @endif @if (session('warning')) @endif @if (session('danger')) @endif
@can('view_order_management')

All orders ({{ count($orders) }})

@if (count($orders) > 0) @foreach ($orders as $order) @endforeach @else @endif
ID Customer Info Total @if($config) ({{$config->currancy}}) @else (LKR) @endif Payment Status Payment Option Order Status ACTION
{{ $order->id }} {{ $order->customerInfo->first_name }} {{ $order->customerInfo->last_name }} {{ number_format($order->total_amount, 2) }} @if ($order->payment_status == 'paid') Paid @else Pending @endif {{ ucwords(str_replace('_', ' ', $order->payment_option)) }} @if ($order->order_status == 'delivered') Delivered @elseif ($order->order_status == 'shipped') Shipped @elseif ($order->order_status == 'accepted') Accepted @elseif ($order->order_status == 'pending') Processing @elseif ($order->order_status == 'cancelled') Cancelled @else Unknown @endif @can('view_order_management') @endcan @can('update_order_management') @endcan @can('delete_order_management') @endcan
No Data Available
{{ $orders->appends(request()->query())->links() }}
@endcan