{{-- Filters --}} {{ $this->form }} {{-- Report Header --}} @php $data = $this->trialBalanceData; @endphp {{-- Trial Balance Table --}}
@if($data['accounts']->isNotEmpty()) @foreach($data['accounts'] as $account) @endforeach {{-- Total Row --}} @else @endif
Initial Balance {{ \Carbon\Carbon::parse($data['date_from'])->format('d M Y').' - '.\Carbon\Carbon::parse($data['date_to'])->format('d M Y') }} End Balance
Account Debit Credit Debit Credit Debit Credit
{{ $account->code ? $account->code . ' ' : '' }}{{ $account->name }} {{ $account->initial_debit > 0 ? number_format($account->initial_debit, 2) : '0.00' }} {{ $account->initial_credit > 0 ? number_format($account->initial_credit, 2) : '0.00' }} {{ $account->period_debit > 0 ? number_format($account->period_debit, 2) : '0.00' }} {{ $account->period_credit > 0 ? number_format($account->period_credit, 2) : '0.00' }} {{ $account->end_debit > 0 ? number_format($account->end_debit, 2) : '0.00' }} {{ $account->end_credit > 0 ? number_format($account->end_credit, 2) : '0.00' }}
Total {{ number_format($data['totals']['initial_debit'], 2) }} {{ number_format($data['totals']['initial_credit'], 2) }} {{ number_format($data['totals']['period_debit'], 2) }} {{ number_format($data['totals']['period_credit'], 2) }} {{ number_format($data['totals']['end_debit'], 2) }} {{ number_format($data['totals']['end_credit'], 2) }}
No accounts with transactions in this period