@push('header') @endpush
{{-- Summary Cards --}}

Total Accounts

{{ number_format($balances->total()) }}

Total Debits

{{ number_format($balances->sum('total_debits'), 2) }}

Total Credits

{{ number_format($balances->sum('total_credits'), 2) }}

Net Balance

{{ number_format($balances->sum('balance'), 2) }}

Moon Traders
Account Balances
As of: {{ \Carbon\Carbon::parse($asOfDate)->format('d-M-Y') }}
Printed by: {{ auth()->user()->name }} | {{ now()->format('d-M-Y h:i A') }}

@forelse ($balances as $index => $balance) @empty @endforelse @if($balances->isNotEmpty()) @endif
Sr.# Code Account Name Type Group Total Debits Total Credits Balance Status
{{ $balances->firstItem() + $index }} {{ $balance->account_code }} {{ $balance->account_name }} {{ $balance->account_type }} {{ $balance->report_group === 'BalanceSheet' ? 'Balance Sheet' : 'Income Statement' }} {{ (float) $balance->total_debits > 0 ? number_format($balance->total_debits, 2) : '0.00' }} {{ (float) $balance->total_credits > 0 ? number_format($balance->total_credits, 2) : '0.00' }} {{ number_format((float) $balance->balance, 2) }} {{ $balance->is_active ? 'Active' : 'Inactive' }}
No account balances found.
Grand Total ({{ $balances->total() }} accounts): {{ number_format($balances->sum('total_debits'), 2) }} {{ number_format($balances->sum('total_credits'), 2) }} {{ number_format($balances->sum('balance'), 2) }}
@if($balances->hasPages())
{{ $balances->withQueryString()->links() }}
@endif