{{ $company ?? '' }}
Account Summary
Period: {{ $data['period']['start'] ?? '' }} to {{ $data['period']['end'] ?? '' }} | Group By: {{ strtoupper($data['group_by'] ?? '') }} | Generated: {{ $generatedAt ?? '' }}
@php $periods = $data['periods'] ?? []; @endphp @foreach ($periods as $p) @php $label = is_array($p) ? ($p['label'] ?? ($p['key'] ?? '')) : ($p->label ?? $p->key ?? ''); @endphp @endforeach @foreach (($data['rows'] ?? []) as $acc) @foreach ($periods as $p) @php $key = is_array($p) ? ($p['key'] ?? '') : ($p->key ?? ''); $cell = $acc['periods'][$key] ?? ['debit'=>0,'credit'=>0]; @endphp @endforeach @endforeach
Account Code Account Name{{ $label }} Debit {{ $label }} CreditTotal Debit Total Credit
{{ $acc['account_code'] ?? ($acc['account_code'] ?? '') }} {{ $acc['account_name'] ?? ($acc['account_name'] ?? '') }}{{ number_format($cell['debit'] ?? 0, 2) }} {{ number_format($cell['credit'] ?? 0, 2) }}{{ number_format($acc['total_debit'] ?? 0, 2) }} {{ number_format($acc['total_credit'] ?? 0, 2) }}