@include('dashboard.header')
@forelse($footwearRequests as $request)
@php $statusRaw = strtolower($request->status ?? 'N/A'); $statusMap = [ 'pending' => ['label' => 'PENDING', 'style' => 'background-color:#b2b2b2; color: #000;', 'percent' => 25, 'color' => 'bg-secondary'], 'picking' => ['label' => 'PICKING', 'style' => 'background-color: #FEDD00; color: #000;', 'percent' => 60, 'color' => 'bg-warning'], 'ready' => ['label' => 'READY', 'style' => 'background-color: #28a745; color: #000;', 'percent' => 100, 'color' => 'bg-success'], 'not_available' => ['label' => 'NOT AVAILABLE', 'style' => 'background-color: #dc3545; color: #000;', 'percent' => 100, 'color' => 'bg-danger'], ]; $statusData = $statusMap[$statusRaw]; @endphp
{{ $statusData['label'] }}
{{-- Product Info --}}
Product Image
{{ $request->brand_name ?? 'N/A' }} {{ strtoupper($request->product_name ?? 'N/A') }}
Style Code: {{ $request->style_id ?? 'N/A' }}
Size: {{ $request->size ?? 'N/A' }}
{{-- Requester --}}
Requester
{{ $request->employee_name }}
{{-- Progress bar at the bottom like a border --}}
@empty
No footwear requests available.
@endforelse
@include('dashboard.script')