@extends('user.layouts') @section('title', 'Service Request History') @section('header') @endsection @section('content')
@include('user.partials.business_request_tabs') {{-- PAGE HEADER --}} {{-- FILTER CARD --}}
{{-- FROM DATE --}}
{{-- TO DATE --}}
{{-- BUSINESS --}}
{{-- PHONE --}}
{{-- AGENT --}}
{{-- SEARCH ALL COLUMNS --}}
{{-- STATUS --}}
{{-- TABLE CARD --}}
{{-- DataTable will place buttons, length and search here --}}
@foreach ($service_history as $history) {{-- SN --}} {{-- DATE --}} {{-- REQUEST DATE --}} {{-- BUSINESS --}} {{-- NAME --}} {{-- PHONE --}} {{-- CATEGORY --}} {{-- AGENT CODE --}} {{-- REMARK --}} {{-- STATUS --}} {{-- 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 {{-- Only approved businesses can be activated/deactivated --}} @if ($history->is_verified == 1) @if ($history->is_active == 1) @else @endif @else - @endif
{{-- STATUS MODAL --}}
@endsection @section('footer') @endsection