{{-- Overdue invoices 30+ days --}}
Invoices Overdue 30+ Days
{{ $overdueInvoices30->count() }}
@if($overdueInvoices30->isEmpty())
No overdue invoices.
@else
@foreach($overdueInvoices30->take(4) as $inv)
-
{{ $customerAccountNames[$inv['customer_account_id']] ?? ('Customer #'.$inv['customer_account_id']) }}
— {{ $inv['document_number'] }}
({{ number_format($inv['outstanding'], 2) }})
@endforeach
@if($overdueInvoices30->count() > 4)
- + {{ $overdueInvoices30->count() - 4 }} more
@endif
@endif
{{-- Quotations expiring --}}
Quotations Expiring (7 Days)
{{ $quotationsExpiring->count() }}
@if($quotationsExpiring->isEmpty())
No expiring quotations.
@else
@foreach($quotationsExpiring->take(4) as $q)
-
{{ $q->document_number }}
— {{ $customerAccountNames[$q->customer_account_id] ?? ('Customer #'.$q->customer_account_id) }}
@endforeach
@endif
{{-- Supplier payments due --}}
Supplier Payments Due (7 Days)
{{ count($supplierPaymentsDue) }}
@if(empty($supplierPaymentsDue) || $supplierPaymentsDue->isEmpty())
No supplier payments due.
@else
@foreach($supplierPaymentsDue->take(4) as $p)
-
{{ $supplierAccountNames[$p['supplier_account_id']] ?? ('Supplier #'.$p['supplier_account_id']) }}
— {{ $p['document_number'] }}
({{ number_format($p['outstanding'], 2) }})
@endforeach
@endif
{{-- Overdue POs --}}
@if(isset($overduePurchaseOrders) && $overduePurchaseOrders > 0)
Overdue Purchase Orders
{{ $overduePurchaseOrders }}
@endif
{{-- Delayed GRVs --}}
@if(isset($delayedReceipts) && $delayedReceipts > 0)
GRVs Pending Over 3 Days
{{ $delayedReceipts }}
@endif
{{-- Below reorder level --}}
@if(isset($belowReorderCount) && $belowReorderCount > 0)
@endif