@if(count($sales)>0)
@php
$ctr++;$totalIni = 0;
@endphp
| {{ $ctr.". ".$sales[0] }} |
| KODE AKUN |
NAMA AKUN |
JUMLAH |
@foreach($data->Sales as $jual)
@foreach($jual as $j)
@php
$totalLabarugi+=$j->balance;
$totalIni += $j->balance;
@endphp
| {{ $j->account_number }} |
{{ $j->account_name }} |
{{ formatNumber($j->balance,2) }} |
@endforeach
@endforeach
| {{ "Total ".$sales[0] }} |
{{ formatNumber($totalIni,2) }} |
@endif
@if(count($revenue)>0)
@php
$ctr++;$totalIni = 0;
@endphp
|
| {{ $ctr.". ".$revenue[0] }} |
| KODE AKUN |
NAMA AKUN |
JUMLAH |
@foreach($data->Revenue as $jual)
@foreach($jual as $j)
@php
$totalLabarugi+=$j->balance;
$totalIni += $j->balance;
@endphp
| {{ $j->account_number }} |
{{ $j->account_name }} |
{{ formatNumber($j->balance,2) }} |
@endforeach
@endforeach
| {{ "Total ".$revenue[0] }} |
{{ formatNumber($totalIni,2) }} |
@endif
@if(count($expense)>0)
@php
$ctr++;$totalIni = 0;
@endphp
|
| {{ $ctr.". ".$expense[0] }} |
| KODE AKUN |
NAMA AKUN |
JUMLAH |
@foreach($data->Expense as $jual)
@foreach($jual as $j)
@php
$totalLabarugi+=$j->balance;
$totalIni += $j->balance;
@endphp
| {{ $j->account_number }} |
{{ $j->account_name }} |
{{ formatNumber($j->balance,2) }} |
@endforeach
@endforeach
| {{ "Total ".$expense[0] }} |
{{ formatNumber($totalIni,2) }} |
@endif
@if(count($otherRevenue)>0)
@php
$ctr++;$totalIni = 0;
@endphp
|
| {{ $ctr.". ".$otherRevenue[0] }} |
| KODE AKUN |
NAMA AKUN |
JUMLAH |
@foreach($data->{"Other Revenue"} as $jual)
@foreach($jual as $j)
@php
$totalLabarugi+=$j->balance;
$totalIni += $j->balance;
@endphp
| {{ $j->account_number }} |
{{ $j->account_name }} |
{{ formatNumber($j->balance,2) }} |
@endforeach
@endforeach
| {{ "Total ".$otherRevenue[0] }} |
{{ formatNumber($totalIni,2) }} |
@endif
@if(count($otherExpenses)>0)
@php
$ctr++;$totalIni = 0;
@endphp
|
| {{ $ctr.". ".$otherExpenses[0] }} |
| KODE AKUN |
NAMA AKUN |
JUMLAH |
@foreach($data->{"Other Expenses"} as $jual)
@foreach($jual as $j)
@php
$totalLabarugi+=$j->balance;
$totalIni += $j->balance;
@endphp
| {{ $j->account_number }} |
{{ $j->account_name }} |
{{ formatNumber($j->balance,2) }} |
@endforeach
@endforeach
| {{ "Total ".$otherExpenses[0] }} |
{{ formatNumber($totalIni,2) }} |
@endif
@if(count($cogs)>0)
@php
$ctr++;$totalIni = 0;
@endphp
|
| {{ $ctr.". ".$cogs[0] }} |
| KODE AKUN |
NAMA AKUN |
JUMLAH |
@foreach($data->COGS as $jual)
@foreach($jual as $j)
@php
$totalLabarugi+=$j->balance;
$totalIni += $j->balance;
@endphp
| {{ $j->account_number }} |
{{ $j->account_name }} |
{{ formatNumber($j->balance,2) }} |
@endforeach
@endforeach
| {{ "Total ".$cogs[0] }} |
{{ formatNumber($totalIni,2) }} |
@endif
| {{ "Total Laba Rugi" }} |
{{ formatNumber($totalLabarugi,2) }} |