@extends('user.layouts') @section('title', 'Service Request History') @section('header') @endsection @section('content')
{{-- PAGE HEADER --}} {{-- FILTER CARD --}}
Search & Filter
Filter service requests using the fields below
{{-- FROM DATE --}}
{{-- TO DATE --}}
{{-- BUSINESS --}}
{{-- NAME --}}
{{-- PHONE --}}
{{-- CATEGORY --}}
{{-- AGENT --}}
{{-- STATUS --}}
{{-- GENERAL SEARCH --}}
{{-- TABLE CARD --}}
Service Requests
Complete service request history
{{ count($service_history) }} Records
@foreach ($service_history as $history) {{-- SN --}} {{-- DATE --}} {{-- REQUEST DATE --}} {{-- BUSINESS --}} {{-- NAME --}} {{-- PHONE --}} {{-- CATEGORY --}} {{-- AGENT CODE --}} {{-- REMARK --}} {{-- STATUS --}} {{-- ACTION --}} @endforeach
SN DATE REQUEST DATE BUSINESS NAME NAME PHONE NO CATEGORY NAME AGENT CODE REMARK STATUS ACTION
{{ $loop->iteration }} {{ optional($history->updated_at)->format('d-m-Y') ?? '-' }} {{ optional($history->created_at)->format('d-m-Y') ?? '-' }} {{ $history->business_name ?? '-' }} {{ optional($history->user)->name ?? '-' }} {{ $history->phone_number ?? '-' }} {{ $history->category_name ?? '-' }} @if (!empty($history->agent_code)) {{ $history->agent_code }} @else No Agent Code @endif {{ \Illuminate\Support\Str::limit( $history->remark ?? '-', 40 ) }} @if ($history->is_verified == 0) Rejected @else Approved @endif @if ($history->is_active == 1) @else @endif
{{-- STATUS MODAL --}}
@endsection @section('footer') @endsection