@extends('layouts.app') @section('title', 'Service Requests Report') @section('content') {{-- Fixed Top Action Bar --}}
{{-- Filters Card --}}| SR Number | Title | Category | Created Date | Priority | Status | Action |
|---|---|---|---|---|---|---|
| #{{ $request->id }} | {{ $request->title }} | {{ $request->category->name ?? 'Uncategorized' }} | {{ $request->created_at ? $request->created_at->format('Y-m-d') : '-' }} | @php $priorityClass = [ 'low' => 'bg-soft-success text-success', 'medium' => 'bg-soft-info text-info', 'high' => 'bg-soft-warning text-warning', 'critical' => 'bg-soft-danger text-danger' ][strtolower($request->priority)] ?? 'bg-secondary'; @endphp {{ ucfirst($request->priority) }} | @php $statusClass = [ 'open' => 'badge-blue', 'in_progress' => 'badge-info', 'approved' => 'badge-success', 'rejected' => 'badge-danger', 'resolved' => 'badge-success', 'closed' => 'badge-secondary', 'cancelled' => 'badge-danger' ][strtolower($request->status)] ?? 'badge-secondary'; @endphp {{ ucfirst(str_replace('_', ' ', $request->status)) }} | View |
| No service requests found for this period. | ||||||