@extends('user.layouts') @section('title', 'Service Request History') @section('header') @endsection @section('content')
Search, filter and export service request history
| SN | DATE | REQUEST DATE | BUSINESS NAME | NAME | PHONE NO | CATEGORY NAME | AGENT CODE | REMARK | STATUS | ACTION |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{-- DATE --}}{{ optional($history->updated_at)->format('d-m-Y') ?? '-' }} | {{-- REQUEST DATE --}}{{ optional($history->created_at)->format('d-m-Y') ?? '-' }} | {{-- BUSINESS --}}{{ $history->business_name ?? '-' }} | {{-- NAME --}}{{ optional($history->user)->name ?? '-' }} | {{-- PHONE --}}{{ $history->phone_number ?? '-' }} | {{-- CATEGORY --}}{{ $history->category_name ?? '-' }} | {{-- AGENT CODE --}}@if (!empty($history->agent_code)) {{ $history->agent_code }} @else No Agent Code @endif | {{-- REMARK --}}{{ \Illuminate\Support\Str::limit( $history->remark ?? '-', 40 ) }} | {{-- STATUS --}}@if ($history->is_verified == 0) Rejected @else Approved @endif | {{-- ACTION --}}@if ($history->is_active == 1) @else @endif |