@extends('layouts.app') @section('content')
Total Enquiries
Pending Review
{{ $analytics['total'] > 0 ? round(($analytics['pending'] / $analytics['total']) * 100, 1) : 0 }}% of total
Assigned
{{ $analytics['total'] > 0 ? round(($analytics['assigned'] / $analytics['total']) * 100, 1) : 0 }}% assigned
Approved
{{ $analytics['total'] > 0 ? round(($analytics['approved'] / $analytics['total']) * 100, 1) : 0 }}% success rate
Rejected
{{ $analytics['total'] > 0 ? round(($analytics['rejected'] / $analytics['total']) * 100, 1) : 0 }}% rejected
Overdue
Needs urgent attention
View detailed statistics for {{ $analyticsByRegion->count() }} regions
--}}View detailed statistics for {{ $analyticsByDistrict->count() }} districts
--}}View detailed type for all Enquiries
--}}|
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 |
|||||||||
| SN | REGION | TOTAL | PENDING | ASSIGNED | APPROVED | REJECTED | ACTIONS |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $region->name }} | {{-- Tumia rounded-pill kwa muonekano wa kisasa --}}{{ $total }} | {{ $pending }} | {{ $assigned }} | {{ $approved }} | {{ $rejected }} | Tazama |
| Hakuna data ya uchambuzi wa mikoa iliyopatikana. | |||||||
| # | NAME | TOTAL | PENDING | ASSIGNED | APPROVED | REJECTED | DETAILS |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $district->name }} | {{-- Updated badges to rounded-pill for modern look --}}{{ $total }} | {{ $pending }} | {{ $assigned }} | {{ $approved }} | {{ $rejected }} | {{-- Simplified action button for cleaner cell presentation --}} View |
| No district analytics data available. | |||||||
| ENQUIRY | RECORDS | REQUESTED AMOUNT (GRAND) |
|---|---|---|
| LOAN APPLICATIONS | {{ number_format($childTableStats['loan_applications']['total'] ?? 0) }} | TZS {{ number_format($childTableStats['loan_applications']['total_amount'] ?? 0) }} |
| PAYMENTS | {{ number_format($childTableStats['payments']['total'] ?? 0) }} | TZS {{ number_format($childTableStats['payments']['total_amount'] ?? 0) }} |
| REFUNDS | {{ number_format($childTableStats['refunds']['total'] ?? 0) }} | TZS {{ number_format($childTableStats['refunds']['total_amount'] ?? 0) }} |
| WITHDRAWALS | {{ number_format($childTableStats['withdrawals']['total'] ?? 0) }} | TZS {{ number_format($childTableStats['withdrawals']['total_amount'] ?? 0) }} |
| SHARES | {{ number_format($childTableStats['shares']['total'] ?? 0) }} | TZS {{ number_format($childTableStats['shares']['total_amount'] ?? 0) }} |
| MEMBERSHIP CHANGES | {{ number_format($childTableStats['membership_changes']['total'] ?? 0) }} |
Joins: {{ $childTableStats['membership_changes']['joins'] ?? 0 }}
Unjoins: {{ $childTableStats['membership_changes']['unjoins'] ?? 0 }}
|
| RETIREMENTS | {{ number_format($childTableStats['retirements']['total'] ?? 0) }} | N/A |
| CONDOLENCES | {{ number_format($childTableStats['condolences']['total'] ?? 0) }} | N/A |
| INJURIES | {{ number_format($childTableStats['injuries']['total'] ?? 0) }} | N/A |
| SICK LEAVES | {{ number_format($childTableStats['sick_leaves']['total'] ?? 0) }} | N/A |
| BENEFITS | {{ number_format($childTableStats['benefits']['total'] ?? 0) }} | N/A |
| DEDUCTIONS | {{ number_format($childTableStats['deductions']['total'] ?? 0) }} | N/A |
| URA MOBILE | {{ number_format($childTableStats['ura_mobile']['total'] ?? 0) }} | N/A |
| RESIDENTIAL DISASTERS | {{ number_format($childTableStats['residential_disasters']['total'] ?? 0) }} | N/A |
Export will include current filtered data @if(request()->hasAny(['region_id', 'district_id', 'type', 'status', 'date_from', 'date_to', 'search'])) Filters Applied @endif
Please wait while we prepare your data