@foreach($accounts as $acc)
@if($accountBalance[$acc->id])
{{$acc->number}} |
{{$acc->name}} |
|
|
|
|
|
|
|
|
|
@foreach($subChild[$acc->id] as $sA)
@if($subAccountBalance[$sA->id])
{{$sA->number}} |
{{$sA->name}} |
|
|
|
|
|
|
|
|
|
@foreach($child[$sA->id] as $c)
@if($childBalance[$c->id])
{{$c->number}} |
{{$c->name}} |
@if($openingBalance[$c->id] > 0)
{{number_format($openingBalance[$c->id])}} |
|
{{number_format($openingBalance[$c->id])}} |
@elseif($openingBalance[$c->id] < 0)
|
{{number_format(abs($openingBalance[$c->id]))}} |
({{number_format(abs($openingBalance[$c->id]))}}) |
@else
|
|
|
@endif
{{ $totalDebit[$c->id] != 0 ? number_format($totalDebit[$c->id]) : ''}} |
@if($totalCredit[$c->id] != 0)
{{number_format(abs($totalCredit[$c->id]))}} |
@else
- |
@endif
@if($bln > 0)
{{number_format($bln)}} |
@elseif($bln < 0)
({{number_format(abs($bln))}}) |
@else
- |
@endif
@if($total > 0)
{{number_format($total)}} |
- |
{{number_format($total)}} |
@elseif($total < 0)
|
{{number_format(abs($total))}} |
({{number_format(abs($total))}}) |
@else
{{number_format(abs($closing_debits))}} |
{{number_format(abs($closing_credits))}} |
({{$total}}) |
@endif
@endif
@endforeach
|
|
|
|
|
|
|
|
|
|
|
{{$sA->number}} |
{{$sA->name}} |
@if($sopenDebit > 0)
{{number_format($sopenDebit)}} |
@elseif($sopenDebit < 0)
({{number_format(abs($sopenDebit))}}) |
@else
- |
@endif
@if($sopenCredit > 0)
{{number_format($sopenCredit)}} |
@elseif($sopenCredit < 0)
({{number_format(abs($sopenCredit))}}) |
@else
- |
@endif
@if($bln > 0)
{{number_format($bln)}} |
@elseif($bln < 0)
({{number_format(abs($bln))}}) |
@else
- |
@endif
@if($speriodDebit > 0)
{{number_format($speriodDebit)}} |
@elseif($speriodDebit < 0)
({{number_format(abs($speriodDebit))}}) |
@else
- |
@endif
@if($speriodCredit > 0)
{{number_format($speriodCredit)}} |
@elseif($speriodCredit < 0)
({{number_format(abs($speriodCredit))}}) |
@else
- |
@endif
@if($sbln > 0)
{{number_format($sbln)}} |
@elseif($sbln < 0)
({{number_format(abs($sbln))}}) |
@else
- |
@endif
@if($closingDebt > 0)
{{number_format($closingDebt)}} |
@elseif($closingDebt < 0)
({{number_format(abs($closingDebt))}}) |
@else
- |
@endif
@if($closingCredit > 0)
{{number_format($closingCredit)}} |
@elseif($closingCredit < 0)
({{number_format(abs($closingCredit))}}) |
@else
- |
@endif
@if($bln >= 0)
{{number_format($bln)}} |
@else
({{number_format(abs($bln))}}) |
@endif
@endif
@endforeach
|
|
|
|
|
|
|
|
|
|
|
{{$acc->number}} |
{{$acc->name}} |
@if($popenDebit > 0)
{{number_format($popenDebit)}} |
@elseif($popenDebit < 0)
({{number_format(abs($popenDebit))}}) |
@else
- |
@endif
@if($popenCredit > 0)
{{number_format($popenCredit)}} |
@elseif($popenCredit < 0)
({{number_format(abs($popenCredit))}}) |
@else
- |
@endif
@if($bln > 0)
{{number_format($bln)}} |
@elseif($bln < 0)
({{number_format(abs($bln))}}) |
@else
- |
@endif
@if($pperiodDebit > 0)
{{number_format($pperiodDebit)}} |
@elseif($pperiodDebit < 0)
({{number_format(abs($pperiodDebit))}}) |
@else
- |
@endif
@if($pperiodCredit > 0)
{{number_format($pperiodCredit)}} |
@elseif($pperiodCredit < 0)
({{number_format(abs($pperiodCredit))}}) |
@else
- |
@endif
@if($bln > 0)
{{number_format($bln)}} |
@elseif($bln < 0)
({{number_format(abs($bln))}}) |
@else
- |
@endif
@if($level1_close_debt > 0)
{{number_format($level1_close_debt)}} |
@elseif($level1_close_debt < 0)
({{number_format(abs($level1_close_debt))}}) |
@else
- |
@endif
@if($level1_close_cred > 0)
{{number_format($level1_close_cred)}} |
@elseif($level1_close_cred < 0)
({{number_format(abs($level1_close_cred))}}) |
@else
- |
@endif
@if($bln > 0)
{{number_format($bln)}} |
@elseif($bln < 0)
({{number_format(abs($bln))}}) |
@else
- |
@endif
@endif
@endforeach
|
Total |
@if($openDebit > 0)
{{number_format($openDebit)}} |
@elseif($openDebit < 0)
({{number_format(abs($openDebit))}}) |
@else
- |
@endif
@if($openCredit > 0)
{{number_format($openCredit)}} |
@elseif($openCredit < 0)
({{number_format(abs($openCredit))}}) |
@else
- |
@endif
@if($bln > 0)
{{number_format($bln)}} |
@elseif($bln < 0)
({{number_format(abs($bln))}}) |
@else
- |
@endif
@if($periodDebit > 0)
{{number_format($periodDebit)}} |
@elseif($periodDebit < 0)
({{number_format(abs($periodDebit))}}) |
@else
- |
@endif
@if($periodCredit > 0)
{{number_format($periodCredit)}} |
@elseif($periodCredit < 0)
({{number_format(abs($periodCredit))}}) |
@else
- |
@endif
@if($bln > 0)
{{number_format($bln)}} |
@elseif($bln < 0)
({{number_format(abs($bln))}}) |
@else
- |
@endif
@if($debit > 0)
{{number_format($debit)}} |
@elseif($debit < 0)
({{number_format(abs($debit))}}) |
@else
- |
@endif
@if($credit > 0)
{{number_format($credit)}} |
@elseif($credit < 0)
({{number_format(abs($credit))}}) |
@else
- |
@endif
@if($bln > 0)
{{number_format($bln)}} |
@elseif($bln < 0)
({{number_format(abs($bln))}}) |
@else
- |
@endif