@extends('layouts.app') @section('content')
|
|
#
|
Date & Time
|
Check Reference
|
Member Details
|
Bank Information
|
Category
|
Status & Progress
|
Actions
|
|---|---|---|---|---|---|---|---|---|
|
@php
$checkboxDisabled = false;
$currentStatus = $enquiry->payment ? $enquiry->payment->status : $enquiry->status;
// Checkbox logic based on status:
// - "assigned" (Awaiting Initiation) → Enable (Bulk Initiate, Bulk Reject)
// - "initiated" → Disable ALL
// - "approved" → Enable (Bulk Reject, Bulk Pay)
// - "rejected" → Disable ALL
// - "paid" → Disable ALL
if (in_array($currentStatus, ['initiated', 'rejected', 'paid'])) {
$checkboxDisabled = true;
}
// Enable for: assigned and approved only
@endphp
|
{{ $loop->iteration + (($enquiries->currentPage() - 1) * $enquiries->perPage()) }}
|
{{ $enquiry->date_received ?? $enquiry->created_at->format('M d, Y') }}
{{ $enquiry->created_at->format('H:i A') }}
{{ $enquiry->created_at->diffForHumans() }}
@if($isOverdue)
{{ $priorityLevel === 'critical' ? 'CRITICAL' : 'High Priority' }}
@endif
|
{{ $enquiry->check_number }}
Reference ID
|
{{ strtoupper(substr($enquiry->full_name, 0, 1)) }}
{{ ucwords($enquiry->full_name) }}
{{ $enquiry->district->name ?? 'N/A' }}, {{ $enquiry->region->name ?? 'N/A' }}
{{ $enquiry->phone ?? 'No Phone' }}
|
{{ strtoupper($enquiry->bank_name ?? 'N/A') }}
Account Number
{{ $enquiry->account_number ?? 'Not Available' }}
|
{{ ucfirst(str_replace('_', ' ', $enquiry->type)) }}
|
@if($enquiry->payment)
@switch($enquiry->payment->status)
@case('initiated')
Initiated
@break
@case('approved')
Approved
@break
@case('paid')
Paid
@break
@case('rejected')
Rejected
@break
@default
{{ ucfirst($enquiry->payment->status) }}
@endswitch
@if($isOverdue)
{{ $overdueStatus }}
@endif
Rejected
Awaiting Initiation
@if($isOverdue)
{{ $overdueStatus }}
@endif
|
|
No payment enquiries foundNo enquiries assigned to you at this time. |
||||||||