@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
|
|
|
@endif
@endif
@endforeach
|
|
|
|
|
|
|
|
|
|
|
Total {{$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($bln > 0)
{{number_format($bln)}} |
@elseif($bln < 0)
({{number_format(abs($bln))}}) |
@else
- |
@endif
@if($sdebit > 0)
{{number_format($sdebit)}} |
@elseif($sdebit < 0)
({{number_format(abs($sdebit))}}) |
@else
- |
@endif
@if($scredit > 0)
{{number_format($scredit)}} |
@elseif($scredit < 0)
({{number_format(abs($scredit))}}) |
@else
- |
@endif
@if($bln >= 0)
{{number_format($bln)}} |
@else
({{number_format(abs($bln))}}) |
@endif
@endif
@endforeach
|
|
|
|
|
|
|
|
|
|
|
Total {{$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($pdebit > 0)
{{number_format($pdebit)}} |
@elseif($pdebit < 0)
({{number_format(abs($pdebit))}}) |
@else
- |
@endif
@if($pcredit > 0)
{{number_format($pcredit)}} |
@elseif($pcredit < 0)
({{number_format(abs($pcredit))}}) |
@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