|
Kode Akun
|
Nama Akun
|
Debit
|
Kredit
|
@php
$nomor = 1;
$total = 0;
$totalAll = 0;
$totalKe = 0;
$totalKeAll = 0;
$kdmap = '';
@endphp
@foreach ($result as $item)
|
@if ($item['type'] == 0)
{{ str_replace('0', '', $item['kdmap']) }}
@else
{{ str_replace('0', '', $item['kdmap']) }}
@endif
|
@if ($item['type'] == 0)
{{ $item['namamap'] }}
@else
{!! str_replace('-', ' ', $item['namamap']) !!}
@endif
|
{{ number_format($item['debet'], 2, '.', ',') }}
|
{{ number_format($item['kredit'], 2, '.', ',') }}
|
@php
$total = $total + $item['debet'];
$totalAll = $totalAll + $item['kredit'];
@endphp
@endforeach
@if( $request['judul'] == 'LAPORAN OPERASIONAL / LABA - RUGI')
|
|
|
|
|
PENDAPATAN
|
{{ number_format($totalAll, 2, '.', ',') }}
|
|
BEBAN
|
{{ number_format($total, 2, '.', ',') }}
|
|
TOTAL
|
{{ number_format($totalAll - $total, 2, '.', ',') }}
|
@endif
|