@extends('layouts.admin') @section('title', 'Financial reports') @section('content') @php $tbDebit = collect($trialBalance)->sum('debit_cents'); $tbCredit = collect($trialBalance)->sum('credit_cents'); @endphp
Trial balance debit
AUD {{ number_format($tbDebit / 100, 2) }}
Trial balance credit
AUD {{ number_format($tbCredit / 100, 2) }}
Net profit
AUD {{ number_format(($profitAndLoss['profit_cents'] ?? 0) / 100, 2) }}
GRNI
AUD {{ number_format(($grni['balance_cents'] ?? 0) / 100, 2) }}
@foreach($trialBalance as $row) @endforeach
AccountDebitCredit
{{ $row['account_code'] }} {{ $row['account_name'] }} {{ number_format($row['debit_cents'] / 100, 2) }} {{ number_format($row['credit_cents'] / 100, 2) }}
Revenue AUD {{ number_format(($profitAndLoss['revenue_cents'] ?? 0) / 100, 2) }}
Expenses AUD {{ number_format(($profitAndLoss['expense_cents'] ?? 0) / 100, 2) }}
Profit AUD {{ number_format(($profitAndLoss['profit_cents'] ?? 0) / 100, 2) }}
@forelse($apAging as $row) @empty @endforelse
BillOutstandingDays
{{ $row['number'] }} {{ number_format($row['outstanding_cents'] / 100, 2) }} {{ $row['days_overdue'] }}
No open AP.
@forelse($arAging as $row) @empty @endforelse
InvoiceOutstanding
{{ $row['number'] }} {{ number_format($row['outstanding_cents'] / 100, 2) }}
No open AR.
@endsection