@extends('user.layouts') @section('title', 'Service Request') @section('header') @endsection @section('content')
@include('user.partials.business_request_tabs') {{-- ============================== HEADER =============================== --}}

Service Request

Total Requests : {{ str_pad($service_list->count(), 2, '0', STR_PAD_LEFT) }}
{{-- ============================== FILTERS =============================== --}}
{{-- FROM DATE --}}
{{-- TO DATE --}}
{{-- BUSINESS --}}
{{-- PHONE --}}
{{-- CATEGORY --}}
{{-- AGENT --}}
{{-- ACTIVE FILTERS --}}
Active Filters:
{{-- ============================== TABLE CARD =============================== --}}
@foreach ($service_list as $service) @php $customerName = $service->name ?? 'N/A'; $initial = $customerName !== 'N/A' ? strtoupper(substr(trim($customerName), 0, 1)) : 'U'; @endphp {{-- SN --}} {{-- DATE --}} @php $createdAt = $service->created_at ? \Carbon\Carbon::parse($service->created_at)->timezone('Asia/Kolkata') : null; @endphp {{-- BUSINESS --}} {{-- NAME --}} {{-- PHONE --}} {{-- CATEGORY --}} {{-- AGENT --}} {{-- ACTION --}} @endforeach
SN REQUEST DATE BUSINESS NAME NAME PHONE NO CATEGORY NAME AGENT CODE ACTION
{{ $loop->iteration }} @if($createdAt)
{{ $createdAt->format('d-m-Y') }}
{{ $createdAt->format('h:i A') }}
@else N/A @endif
{{ $service->business_name ?? 'N/A' }}
Request #{{ $service->id }}
{{ $initial }}
{{ $customerName }}
{{ $service->phone_number ?? 'N/A' }} {{ $service->category_name ?? 'N/A' }} @if($service->agent_code) {{ $service->agent_code }} @else No Agent Code @endif View
@endsection @section('footer') @endsection