@forelse(auth()->user()->serviceRequests()->latest()->take(3)->get() as $request)
{{ $request->businessType->name ?? 'Service Request' }}
Submitted on {{ $request->created_at->format('M j, Y') }}
@php
$statusColors = [
'pending' => 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-300',
'in_progress' => 'bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300',
'approved' => 'bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300',
'cancelled' => 'bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300'
];
$statusLabels = [
'pending' => 'Pending',
'in_progress' => 'In Progress',
'approved' => 'Completed',
'cancelled' => 'Cancelled'
];
@endphp
{{ $statusLabels[$request->status] }}
Amount: {{ number_format($request->total_price, 2) }} SR
No service requests found