@extends('user.layouts') @section('title', 'Service Request History') @section('header') @endsection @section('content')

Service Request History

View approved, rejected and pending service requests

{{-- FILTERS --}}
Search & Filter

Find history using date, agent, category and status

{{-- TABLE --}}
@foreach ($service_list as $service) @php $agentName = optional($service->user)->name ?? '-'; $initial = $agentName !== '-' ? strtoupper(substr(trim($agentName), 0, 1)) : 'A'; @endphp @endforeach
SN REQUEST DATE AGENT NAME CATEGORY NAME CATEGORY NAME MALAYALAM IMAGE STATUS
{{ $loop->iteration }} {{ $service->created_at ? $service->created_at->format('Y-m-d') : '-' }}
{{ $initial }}
{{ $agentName }}
{{ $service->category_name ?? '-' }} {{ $service->category_name_malayalam ?? '-' }} @if(!empty($service->image)) @else No Image @endif @if($service->status == 'approved') Approved @elseif($service->status == 'rejected') Rejected @else Pending @endif
{{-- IMAGE MODAL --}} @endsection @section('footer') @endsection