@extends('layouts.app') @section('content')
{{ $analyticsByRegion->count() }} Total
{{ $analyticsByDistrict->count() }} Total
All Types
|
SN
|
Date
|
CheckNo
|
Member
|
Type
|
Region
|
Registered By
|
Status
|
Actions
|
|
|---|---|---|---|---|---|---|---|---|---|
|
{{ $loop->iteration + (($enquiries->currentPage() - 1) * $enquiries->perPage()) }}
|
{{ $enquiry->created_at->format('d/m/Y') }}
{{ $enquiry->created_at->format('H:i') }} HRS
|
{{ $enquiry->check_number }} |
{{ ucwords($enquiry->full_name) }}
{{ $enquiry->phone }}
|
{{ ucfirst(str_replace('_', ' ', $enquiry->type)) }} |
{{ $enquiry->region->name ?? 'N/A' }}
{{ $enquiry->district->name ?? 'N/A' }}
|
@if($enquiry->registeredBy) {{ $enquiry->registeredBy->name }} @else N/A @endif | @php $statusConfig = [ 'pending' => ['class' => 'bg-warning', 'icon' => 'fa-clock', 'text' => 'text-dark'], 'assigned' => ['class' => 'bg-info', 'icon' => 'fa-user-check', 'text' => 'text-white'], 'approved' => ['class' => 'bg-success', 'icon' => 'fa-check-circle', 'text' => 'text-white'], 'rejected' => ['class' => 'bg-danger', 'icon' => 'fa-times-circle', 'text' => 'text-white'], ]; $config = $statusConfig[$enquiry->status] ?? ['class' => 'bg-secondary', 'icon' => 'fa-question', 'text' => 'text-white']; @endphp {{ strtoupper($enquiry->status) }} | View | |
No Enquiries FoundTry adjusting your filters or search criteria |
|||||||||