{!! strtoupper($profile->namapemerintahan) !!}
{!! $profile->alamatlengkap !!}
{{ $profile->fixedphone }}
Email : {!! $profile->alamatemail !!}


RINCIAN BIAYA PELAYANAN
{{-- --}} {{-- --}} {{-- --}} {{-- --}}
Print by {{ $res['user'] }}     {{ date('d/m/Y H:i') }}
No. Registrasi : {{ $res['identitas']->noregistrasi }} Unit : {{ $res['identitas']->namadepartemen }}
No. RM : {{ $res['identitas']->nocm }} Ruang : {{ $res['identitas']->namaruangan }}
Nama Pasien : {{ $res['identitas']->namapasien . ' (' . $res['identitas']->jeniskelamin . ')' }} Tgl Masuk : {{ date_format(date_create($res['identitas']->tglregistrasi), 'd/m/Y H:i') }} Kelas : {{ $res['identitas']->namakelas }}
Tgl Masuk : {{ date_format(date_create($res['identitas']->tglregistrasi), 'd/m/Y H:i') }} DPJP : {{ $res['identitas']->namalengkap }} Tgl Pulang : {{ date_format(date_create($res['identitas']->tglpulang), 'd/m/Y H:i') }}
Tgl Pulang : {{ date_format(date_create($res['identitas']->tglpulang), 'd/m/Y H:i') }} Tipe : {{ $res['identitas']->kelompokpasien }} No SEP : {{ $res['identitas']->nosep }}
No SEP : {{ $res['identitas']->nosep }} Penjamin : {{ $res['identitas']->namarekanan }}
{{-- --}} {{-- --}} @php $nomor = 1; $totaltagihan = 0; $totaldiskon = 0; $jumlahbill = 0; $totaldiklaim = 0; @endphp @foreach ($res['billing'] as $ruangan) @foreach ($ruangan->groupBy('jenisproduk') as $item) @php $total = 0; $diskon = 0; @endphp @foreach ($item as $data) {{-- --}} {{-- @if ($data->penulisresep === null) @else @endif --}} @if (strpos($data->jumlah, '.') !== false) @else @endif @php $nomor = $nomor + 1; $total = $total + $data->total; $diskon = $diskon + $data->diskon; @endphp @endforeach @php $totaltagihan = $totaltagihan + $total; $totaldiskon = $totaldiskon + $diskon; $jumlahbill = $totaltagihan - $totaldiskon; @endphp @endforeach @endforeach
No Tanggal Deskripsi Kelas Dokter Qty Tarif Diskon Sub Total
{{ strtoupper($ruangan[0]->namaruangan) }}
JENIS: {{ strtoupper($item[0]->jenisproduk) }}
{{ $nomor }} {{ date_format(date_create($data->tglpelayanan), 'd/m/Y') }} {{ $data->namaproduk }} {{ $data->namakelas }} {{ $data->dokter }} {{ $data->penulisresep }} {{ number_format($data->jumlah, 0, '.', ',') }} {{ $data->jumlah }} {{ number_format($data->hargasatuan, 0, '.', ',') }} {{ number_format($data->diskon, 0, '.', ',') }} {{ number_format(ceil($data->total), 0, '.', ',') }}
{{ number_format(ceil($total), 0, '.', ',') }}
@if ($res['iurbayar'] != 0) @endif
TOTAL TAGIHAN : {{ number_format(ceil($res['total']), 0, '.', ',') }}
DEPOSIT - UANG MUKA : {{ number_format($res['deposit'], 0, '.', ',') }}
TOTAL BAYAR : {{ number_format($res['dibayar'], 0, '.', ',') }}
{{$res['identitas']->kelompokpasien == 'Umum' ? 'PIUTANG' : 'TOTAL DIKLAIM'}} : {{ number_format($res['klaim'], 0, '.', ',') }}
SISA HARUS BAYAR : {{ number_format(ceil($res['sisa']), 0, '.', ',') }}
IUR BAYAR : {{ number_format($res['iurbayar'], 0, '.', ',') }}
TERBILANG :
# {{ strtoupper(App\Traits\Valet::static_terbilang($jumlahbill)) }} #
@if ($res['ismultipenjamin'] == true) @endif
Multi Penjamin :
@php $total = 0; @endphp @foreach ($res['multipenjamin'] as $item) @php $total = $total + $item->totalppenjamin; @endphp @endforeach
Penjamin Jumlah
{{ $item->namarekanan }} {{ number_format($item->totalppenjamin, 0, '.', ',') }}
JUMLAH {{ number_format($total, 0, '.', ',') }}
{!! $profile->namakota !!},   {{ date('d/m/Y H:i') }}
Penanggung Biaya Kasir
{{ str_replace('( Laki-laki )', '', str_replace('( Perempuan )', '', $res['identitas']->namapasien)) }} -