@if($format) @include('documents.report_logo')
@endif

TRIAL BALANCE REPORT

Title: {{$title}} @php ($debit = 0) @php ($credit = 0) @foreach($account_list as $rows) @php($opening_balance = $rows->getOpeningBalance($from,$rows->account_id)) @php($debit += $rows->debit) @php($credit += $rows->credit) @endforeach
Trial Balance Report
Sr. Account # Account Name Head Name Nature Opening Balance Debit Credit Closing Balance
{{$loop->iteration}} {{$rows->code}} {{$rows->name}} {{$rows->head_name}} {{$rows->nature}} {{EF::numberFormat($opening_balance)}} {{EF::numberFormat($rows->debit)}} {{EF::numberFormat($rows->credit)}} {{EF::numberFormat($opening_balance + (($rows->debit)-($rows->credit)))}}
Total {{EF::numberFormat($debit)}} {{EF::numberFormat($credit)}}