@extends('layouts.app') @section('title') Closing Balance Report @stop @section('breadcrumb') @stop @section('css') @stop @section('content')

{{env('APP_NAME')}}

DAILY {{$account->name}} REPORT

From {{date('d/m/Y',strtotime($from))}} to {{date('d/m/Y',strtotime($to))}}
@if($level == 3)
@if($balance < 0) @else @endif @foreach($transactions as $t) @if($t->voucher_type == \App\GeneralJournalEntry::CRV) @elseif($t->voucher_type == \App\GeneralJournalEntry::BRV) @elseif($t->voucher_type == \App\GeneralJournalEntry::CPV) @elseif($t->voucher_type == \App\GeneralJournalEntry::BPV) @elseif($t->voucher_type == \App\GeneralJournalEntry::JV) @else @endif @if($balance < 0) @elseif($balance > 0) @else @endif @endforeach @if($balance < 0) @elseif($balance > 0) @else @endif
Code Name Date Num Cheque No. Party Narration Account Debit Credit Balance
{{$account->number}} {{$account->name}} OPENING BALANCE ({{number_format(abs($balance))}}){{number_format($balance)}}
CRV-{{$t->voucher_no}}BRV-{{$t->voucher_no}}CPV-{{$t->voucher_no}}BPV-{{$t->voucher_no}}JV-{{$t->voucher_no}}{{date('d/m/Y',strtotime($t->date))}} {{$t->entry_no}} {{$t->cheaque_no}} {{$t->controlAccount ? $t->controlAccount->name : ''}} {{$t->memo}} @foreach($accountHit[$t->entry_no] as $acc) {{$acc->account->number}} - {{$acc->account->name}}
@endforeach
{{$t->amount > 0 ? number_format(abs($t->amount)) : ''}} {{$t->amount < 0 ? number_format(abs($t->amount)) : ''}} ({{number_format(abs($balance))}}){{number_format($balance)}}-
CLOSING BALANCE @if($debit < 0) ({{number_format(abs(number_format($debit)))}}) @elseif($debit > 0) {{number_format($debit)}} @else - @endif @if($credit < 0) ({{number_format(abs(number_format($credit)))}}) @elseif($credit > 0) {{number_format($credit)}} @else - @endif ({{number_format(abs($balance))}}){{number_format($balance)}}-
 
 



Prepared By
Checked By
Approved By



@elseif($level == 2)
@foreach($childAccounts as $cA) @if($balance < 0) @elseif($balance > 0) @else @endif @foreach($transactions[$cA->id] as $t) @if($t->voucher_type == \App\GeneralJournalEntry::CRV) @elseif($t->voucher_type == \App\GeneralJournalEntry::BRV) @elseif($t->voucher_type == \App\GeneralJournalEntry::CPV) @elseif($t->voucher_type == \App\GeneralJournalEntry::BPV) @elseif($t->voucher_type == \App\GeneralJournalEntry::JV) @else @endif @if($balance < 0) @else @endif @endforeach @if($balance < 0) @elseif($balance > 0) @else @endif @endforeach @if($tbalance < 0) @elseif($tbalance > 0) @else @endif
Code Name Date Num Cheque No. Party Narration Debit Credit Balance
{{$cA->number}} {{$cA->name}} OPENING BALANCE ({{number_format(abs($balance))}}){{number_format($balance)}}-
CRV-{{$t->voucher_no}}BRV-{{$t->voucher_no}}CPV-{{$t->voucher_no}}BPV-{{$t->voucher_no}}JV-{{$t->voucher_no}}{{date('d/m/Y',strtotime($t->date))}} {{$t->entry_no}} {{$t->cheaque_no}} {{$t->controlAccount ? $t->controlAccount->name : ''}} {{$t->memo}} {{$t->amount > 0 ? number_format(abs($t->amount)) : ''}} {{$t->amount < 0 ? number_format(abs($t->amount)) : ''}} ({{number_format(abs($balance))}}){{number_format($balance)}}
CLOSING BALANCE @if($debit < 0) ({{number_format(abs(number_format($debit)))}}) @elseif($debit > 0) {{number_format($debit)}} @else - @endif @if($credit < 0) ({{number_format(abs(number_format($credit)))}}) @elseif($credit > 0) {{number_format($credit)}} @else - @endif ({{number_format(abs($balance))}}){{number_format($balance)}}-
TOTAL {{$account->name}} @if($tdebit < 0) ({{number_format(abs(number_format($tdebit)))}}) @elseif($tdebit > 0) {{number_format($tdebit)}} @else - @endif @if($tcredit < 0) ({{number_format(abs(number_format($tcredit)))}}) @elseif($tcredit > 0) {{number_format($tcredit)}} @else - @endif ({{number_format(abs($tbalance))}}){{number_format($tbalance)}}-

{{env('APP_NAME')}}

SUMMARY {{$account->name}}

From {{date('d/m/Y',strtotime($from))}} to {{date('d/m/Y',strtotime($to))}}
@foreach($childAccounts as $cA) @foreach($transactions[$cA->id] as $t) @endforeach @if($balance < 0) @elseif($balance > 0) @else @endif @endforeach @elseif($tbalance > 0) @else @endif
Code Head Of Account Balance
{{$cA->number}} {{$cA->name}} ({{number_format(abs($balance))}}){{number_format($balance)}}-
TOTAL {{$account->name}} @if($tbalance < 0) ({{number_format(abs($tbalance))}}){{number_format($tbalance)}}-



Prepared By
Checked By
Approved By



@elseif($level == 1)
@foreach($childAccounts as $cA) @foreach($subChild[$cA->id] as $sCA) @if($balance < 0) @elseif($balance > 0) @else @endif @foreach($transactions[$sCA->id] as $t) @if($t->voucher_type == \App\GeneralJournalEntry::CRV) @elseif($t->voucher_type == \App\GeneralJournalEntry::BRV) @elseif($t->voucher_type == \App\GeneralJournalEntry::CPV) @elseif($t->voucher_type == \App\GeneralJournalEntry::BPV) @elseif($t->voucher_type == \App\GeneralJournalEntry::JV) @else @endif @if($balance < 0) @elseif($balance > 0) @else @endif @endforeach @if($balance < 0) @elseif($balance > 0) @else @endif @endforeach @if($tbalance < 0) @elseif($tbalance > 0) @else @endif @endforeach @if($ttbalance < 0) @elseif($ttbalance > 0) @else @endif
Code Account Date Num Cheque No. Party Narration Debit Credit Balance
{{$cA->number}} {{$cA->name}}
{{$sCA->number}} {{$sCA->name}} OPENING BALANCE ({{number_format(abs($balance))}}){{number_format($balance)}}-
CRV-{{$t->voucher_no}}BRV-{{$t->voucher_no}}CPV-{{$t->voucher_no}}BPV-{{$t->voucher_no}}JV-{{$t->voucher_no}}{{date('d/m/Y',strtotime($t->date))}} {{$t->entry_no}} {{$t->cheaque_no}} {{$t->controlAccount ? $t->controlAccount->name : ''}} {{$t->memo}} {{$t->amount > 0 ? number_format(abs($t->amount)) : '-'}} {{$t->amount < 0 ? number_format(abs($t->amount)) : '-'}} ({{number_format(abs($balance))}}){{number_format($balance)}}-
{{$sCA->number}} CLOSING BALANCE @if($debit < 0) ({{number_format(abs(number_format($debit)))}}) @elseif($debit > 0) {{number_format($debit)}} @else - @endif @if($credit < 0) ({{number_format(abs(number_format($credit)))}}) @elseif($credit > 0) {{number_format($credit)}} @else - @endif ({{number_format(abs($balance))}}){{number_format($balance)}}-
Total @if($tdebit < 0) ({{number_format(abs(number_format($tdebit)))}}) @elseif($tdebit > 0) {{number_format($tdebit)}} @else - @endif @if($tcredit < 0) ({{number_format(abs(number_format($tcredit)))}}) @elseif($tcredit > 0) {{number_format($tcredit)}} @else - @endif ({{number_format(abs($tbalance))}}){{number_format($tbalance)}}-
Total @if($ttdebit < 0) ({{number_format(abs(number_format($ttdebit)))}}) @elseif($ttdebit > 0) {{number_format($ttdebit)}} @else - @endif @if($ttcredit < 0) ({{number_format(abs(number_format($ttcredit)))}}) @elseif($ttcredit > 0) {{number_format($ttcredit)}} @else - @endif ({{number_format(abs($ttbalance))}}){{number_format($ttbalance)}}-

{{env('APP_NAME')}}

SUMMARY {{$account->name}}

From {{date('d/m/Y',strtotime($from))}} to {{date('d/m/Y',strtotime($to))}}
@foreach($childAccounts as $cA) @foreach($subChild[$cA->id] as $key=>$sCA) @foreach($transactions[$sCA->id] as $t) @endforeach @if($loop->first ) @endif @if($balance < 0) @elseif($balance > 0) @else @endif @endforeach @if($tbalance < 0) @elseif($tbalance > 0) @else @endif @endforeach @if($ttbalance < 0) @elseif($ttbalance > 0) @else @endif
Code Head Of Account Balance
{{$cA->name}} SUMMARY
{{$sCA->number}} {{$sCA->name}} ({{number_format(abs($balance))}}){{number_format($balance)}}-
Sub Total - {{$cA->name}} ({{number_format(abs($tbalance))}}){{number_format($tbalance)}}-
GRAND TOTAL ({{number_format(abs($ttbalance))}}){{number_format($ttbalance)}}-



Prepared By
Checked By
Approved By



@endif
@stop @section('js') @stop