@php $currentGroup = ''; $totalDebit = 0; $totalCredit = 0; @endphp @foreach ($AccountLedgers as $row) @if ($currentGroup != $row->GroupName) @php $currentGroup = $row->GroupName; @endphp @endif @php $totalDebit += $row->debited; $totalCredit += $row->credited; @endphp @endforeach
{{__('lng.Group')}} {{ __('lng.Ledger') }} {{ __('lng.Debit') }} {{ __('lng.Credit') }}
{{ $row->GroupName }}
{{ $row->LedgerName }} @currency($row->debited) @currency($row->credited)
{{ __('lng.Total') }} @currency($totalDebit) @currency($totalCredit)
Balance @if ($totalDebit - $totalCredit >= 0) @currency(abs($totalDebit - $totalCredit)) {{ __('lng.DR') }} @else @currency(abs($totalDebit - $totalCredit)) {{ __('lng.CR') }} @endif