@php
$grandtotaltunai = 0;
$grandtotalkartukredit = 0;
$grandtotaltransfer = 0;
$granddijaminbpjs = 0;
@endphp
@if(count($piutang) > 0)
PEMBAYARAN PASIEN LOST
{{-- TIPE PASIEN: {{$item[0]->kelompokpasien}} --}}
|
@foreach ($piutang->groupBy('kelompokpasien') as $item)
TIPE PASIEN: {{$item[0]->kelompokpasien}}
|
@php
$nopiu = 0;
@endphp
@foreach($item as $piu)
@php
$grandtotaltunai += $piu->totaldibayar;
$nopiu++;
@endphp
| {{ $nopiu++ }} | {{-- 1 --}}
{{ $piu->tglsbm }} | {{-- 2 --}}
- | {{-- 3 --}}
- | {{-- 4 --}}
{{ $piu->namapasien }} | {{-- 5 --}}
{{ $piu->jaminbayarid != 11 || $piu->jaminbayarid != 2 || $piu->jaminbayarid != 5 ? \App\Traits\Valet::getMoneyFormatString($piu->totaldibayar) : '0.00' }} | {{-- 6 --}}
0.00 | {{-- 7 --}}
{{ $piu->jaminbayarid == 11 || $piu->jaminbayarid == 2 ? \App\Traits\Valet::getMoneyFormatString($piu->totaldibayar) : '0.00' }} | {{-- 8 --}}
0.00 | {{-- 9 --}}
0.00 | {{-- 10 --}}
0.00 | {{-- 11 --}}
{{ $piu->jaminbayarid == 5 ? \App\Traits\Valet::getMoneyFormatString($piu->totaldibayar) : '0.00' }} | {{-- 12 --}}
0.00 | {{-- 13 --}}
0.00 | {{-- 14 --}}
0.00 | {{-- 15 --}}
0.00 | {{-- 16 --}}
@endforeach
@endforeach
@endif
@if(count($deposit) > 0)
PEMBAYARAN TINDAKAN, LAB, DAN RONTGEN
|
@foreach ($deposit->groupBy('kelompokpasien') as $item)
TIPE PASIEN: {{$item[0]->kelompokpasien}}
|
@php
$nodepo = 0;
@endphp
@foreach($item as $depo)
@php
$grandtotaltunai += $depo->totaltunai;
$grandtotalkartukredit += $depo->totalkartukredit;
$grandtotaltransfer += $depo->totaltransfer;
$nodepo++;
@endphp
| {{ $nodepo}} |
{{ $depo->tglsbm }} |
- |
- |
{{ $depo->namapasien }} |
{{ \App\Traits\Valet::getMoneyFormatString($depo->totaltunai) }} |
0.00 |
0.00 |
{{ \App\Traits\Valet::getMoneyFormatString($depo->totalkartukredit) }} |
0.00 |
0.00 |
0.00 |
0.00 |
0.00 |
0.00 |
{{ \App\Traits\Valet::getMoneyFormatString($depo->totaltransfer) }} |
@endforeach
@endforeach
@endif
| GRAND TOTAL |
{{ \App\Traits\Valet::getMoneyFormatString($grandtotaltunai) }} |
0.00 |
0.00 |
{{ \App\Traits\Valet::getMoneyFormatString($grandtotalkartukredit) }} |
0.00 |
0.00 |
{{ \App\Traits\Valet::getMoneyFormatString($granddijaminbpjs) }} |
0.00 |
0.00 |
0.00 |
{{ \App\Traits\Valet::getMoneyFormatString($grandtotaltransfer) }} |