@php $profile = App\Http\Controllers\Controller::static_profile(); @endphp @yield('title') @if ((isset($res['pdf']) && $res['pdf']) || (isset($res['storage']) && $res['storage'])) @else {{-- --}} @endif @if ((isset($res['pdf']) && $res['pdf']) || (isset($res['storage']) && $res['storage'])) {{-- --}} @else {{-- @if (stripos(\Request::url(), 'localhost') !== false || stripos(\Request::url(), '127.0.0.1') !== false) --}} {{-- --}} {{-- @else @endif --}} @endif @if ((isset($res['pdf']) && $res['pdf']) || (isset($res['storage']) && $res['storage'])) @else @if (isset($print) && $print == true) @else @endif @endif @yield('page-style')
@if ((isset($res['pdf']) && $res['pdf']) || (isset($res['storage']) && $res['storage'])) @else
@endif
{{ strtoupper($profile->namalengkap) }}
{{$profile->alamatlengkap}}
{{ $profile->alamatemail }}


DETAILS OF HOSPITALIZATION COSTS


{{ $data[0]->nosbm }}
MRN / Age : {{ $res['identitas']->nocm }} / {{ $res['identitas']->umur }} Doctor : {{ $res['identitas']->namalengkap }}
Registration No. : {{ $res['identitas']->noregistrasi }}
Patient Name : {{ $res['identitas']->namapasien }} Room : {{ $res['identitas']->namaruangan }} / {{ $res['identitas']->namakamar }}
Address : {{ $res['identitas']->alamatlengkap }} Registration Date : {{ date_format(date_create($res['identitas']->tglregistrasi), 'j-F-Y') }}
Patient Type : {{ $res['identitas']->kelompokpasien }} Treatment Date : {{ date_format(date_create($res['identitas']->tglregistrasi), 'j-F-Y') }} until {{ date_format(date_create($res['identitas']->tglpulang), 'j-F-Y') }}


Cost Details


@php $nomor = 1; $nomors = 1; $totaltagihan = 0; $totaldiskon = 0; $jumlahbill = 0; $totaldiklaim = 0; @endphp @foreach ($res['billing'] as $ruangan) @php $n = 1; $totalSUB = 0; $nomors++; @endphp @foreach ($ruangan as $k => $item) @php $total = 0; $diskon = 0; $jml = 0; @endphp @foreach ($item as $data) @php $nomor = $nomor + 1; $total = $total + $item->total; $jml = $jml + $item->jumlah; $diskon = $diskon + $item->diskon; @endphp @endforeach @php $n = $n+1; $totalSUB = $totalSUB + ($item->hargasatuan*$item->jumlah); $totaltagihan = $totaltagihan + $total; $totaldiskon = $totaldiskon + $diskon; $jumlahbill = $totaltagihan - $totaldiskon; @endphp @endforeach @endforeach
{{$nomors}}. {{ ucwords($ruangan[0]->namaruangan) }}
{{ App\Traits\Valet::english($item->namaproduk) }} {{ number_format($item->hargasatuan, 2, '.', ',') }} x {{ number_format($item->jumlah, 2, '.', '.')}} = {{ number_format($item->hargasatuan*$item->jumlah, 0, '.', ',') }}
{{ number_format($totalSUB, 0, '.', ',') }}
Grand Total Before Charge = {{ number_format( $res['total'], 0, '.', ',') }}
Additional Charge (1.6%) = {{ number_format( (16/1000*$res['total']), 0, '.', ',') }}
Grand Total After Charge = {{ number_format((1016/1000*$res['total']), 0, '.', ',') }}
To Word :
# {{ strtoupper(App\Traits\Valet::english(App\Traits\Valet::static_terbilang(1016/1000*$res['total']))) }}S #
Printed # {{ date('H:i:s') }}     Shift :
(Patient / Family) {!! $profile->namakota !!},  {{ date('d/m/Y H:i') }} (Cashier)
(Administration)
{{ str_replace('( Laki-laki )', '', str_replace('( Perempuan )', '', $res['identitas']->namapasien)) }} (           ) ( {{$user->namalengkap}} )