@foreach($this->rows as $row) @endforeach
Code Account Debit Credit
{{ $row->code }} {{ $row->name }} {{ number_format($row->debit_total, 2, ',', '.') }} {{ number_format($row->credit_total, 2, ',', '.') }}
Total {{ number_format($this->rows->sum('debit_total'), 2, ',', '.') }} {{ number_format($this->rows->sum('credit_total'), 2, ',', '.') }}