@extends('agent.layouts.app') @section('title', 'My Orders') @section('content')

My Orders

View all orders made with your Matrix ID

Total Orders
{{ $stats['total'] }}
Pending Payment
{{ $stats['pending'] }}
Paid Orders
{{ $stats['paid'] }}
Total Sales
RM {{ number_format($stats['total_sales'], 2) }}
Clear
@if($orders->count() > 0) @foreach($orders as $order) @endforeach
Date Customer Items Total Source Status Action
{{ $order->created_at->format('d M Y') }}
{{ $order->customer_name }}
{{ $order->customer_phone }}
{{ $order->items->count() }} RM {{ number_format($order->total_amount, 2) }} {{ ucfirst($order->source) }} {{ ucfirst($order->payment_status) }} View
{{ $orders->appends(request()->query())->links() }}
@else

No orders found

Orders will appear here when customers use your Matrix ID.

@endif
@endsection