@extends('agent.layouts.index') @section('content')

Product / Order Page

Agent Requests

+ Add Request
@foreach ($requests as $order) @endforeach
Request ID Amount Quantity Date Status Action
{{ $order->request_number }} {{ $order->total_amount }} {{ $order->total_product }} @php $status = strtolower($order->status); $statusClasses = match ($status) { 'approved' => 'bg-green-100 text-green-800', 'pending' => 'bg-yellow-100 text-yellow-800', 'complete' => 'bg-blue-100 text-blue-800', default => 'bg-gray-100 text-gray-800', }; @endphp {{ ucfirst($status) }} {{ $order->request_date }} View
@endsection