@php $items = collect($quickRequests ?? []); $pendingTotal = $items->sum('count'); $activeQueues = $items->filter(fn (array $item): bool => (int) ($item['count'] ?? 0) > 0)->count(); $moduleCount = $items->count(); $requestMeta = [ 'deposit' => ['title' => __('Deposits'), 'subtitle' => __('Manual deposits awaiting review'), 'status' => __('Needs review'), 'hint' => __('Review deposits')], 'withdraw' => ['title' => __('Withdrawals'), 'subtitle' => __('Manual withdrawals awaiting approval'), 'status' => __('Needs review'), 'hint' => __('Review withdrawals')], 'kyc' => ['title' => __('KYC'), 'subtitle' => __('Identity verifications awaiting approval'),'status' => __('Verification due'), 'hint' => __('Review KYC')], 'merchant' => ['title' => __('Merchants'), 'subtitle' => __('Merchant applications awaiting review'), 'status' => __('Approval due'), 'hint' => __('Review merchants')], 'cardholder' => ['title' => __('Cardholders'), 'subtitle' => __('Cardholder profiles awaiting review'), 'status' => __('Profile review'), 'hint' => __('Review cardholders')], 'vc_request' => ['title' => __('Virtual Cards'), 'subtitle' => __('Card requests awaiting issuance'), 'status' => __('Issuance due'), 'hint' => __('Review cards')], ]; @endphp
{{-- Queue grid --}}
@lang('Operations Queue')

@lang('Priority Queue')

@lang('Review high-priority approvals first. Active queues stay highlighted for faster action.')

{{ number_format($pendingTotal) }} @lang('Total Pending')
{{ number_format($activeQueues) }} @lang('Urgent Items')
{{ number_format($moduleCount) }} @lang('Modules Waiting')
@lang('Updated just now')
@if($items->isNotEmpty())
@foreach($items as $item) @php $meta = $requestMeta[$item['key']] ?? ['title' => $item['title'], 'subtitle' => __('Pending review queue'), 'status' => __('Needs review'), 'hint' => __('Review queue')]; $count = (int) ($item['count'] ?? 0); $isActive = $count > 0; $accent = $item['color'] ?? ''; $itemCls = trim($accent . ' ' . ($isActive ? 'is-active' : '')); @endphp
{{ $isActive ? $meta['status'] : __('Clear') }} {{ number_format($count) }}

{{ $meta['title'] }}

{{ $meta['subtitle'] }}

@endforeach
@else @endif