@extends('user.layouts') @section('title', 'Service Request') @section('header') @endsection @section('content')
{{-- HEADER --}} {{-- SEARCH FILTER --}}
Search & Filter
{{-- FROM DATE --}}
{{-- TO DATE --}}
{{-- BUSINESS --}}
{{-- NAME --}}
{{-- PHONE --}}
{{-- CATEGORY --}}
{{-- AGENT --}}
{{-- BUTTONS --}}
{{-- ACTIVE FILTERS --}}
Active Filters:
{{-- TABLE --}}
Business Requests
Latest requests are displayed first
{{ $service_list->count() }} Results
@foreach ($service_list as $service) {{-- 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 }}
{{ $service->name ?? 'N/A' }} {{ $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