@extends('user.layouts') @section('title', 'Service Request') @section('header') @endsection @section('content')
{{-- FILTER --}}
Search Requests

Search using date, agent or category

{{-- 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 ACTION
{{ $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
{{-- IMAGE MODAL --}} {{-- APPROVE MODAL --}} {{-- REJECT MODAL --}} @endsection @section('footer') @endsection