@extends('layouts.admin') @section('title', 'Accounts receivable') @section('content') @php $open = $arInvoices->whereNotIn('status', ['paid', 'void'])->count(); $openCents = $arInvoices->whereNotIn('status', ['paid', 'void'])->sum('total_cents'); @endphp
Invoices
{{ $arInvoices->total() }}
Open on page
{{ $open }}
Page outstanding
AUD {{ number_format($openCents / 100, 2) }}
Clear
Number Customer Status Total Allocated @forelse($arInvoices as $invoice) @php $tone = match($invoice->status) { 'posted','paid' => 'success', 'draft' => 'muted', default => 'warning' }; @endphp {{ $invoice->number }} #{{ $invoice->customer_id ?? '—' }} {{ $invoice->status }} {{ $invoice->currency }} {{ number_format($invoice->total_cents / 100, 2) }} {{ number_format(($invoice->allocations_sum_amount_cents ?? 0) / 100, 2) }} Open @empty No AR invoices. @endforelse {{ $arInvoices->links() }}
@endsection