@php $profile = App\Http\Controllers\Controller::static_profile(); @endphp Billing @if (stripos(\Request::url(), 'localhost') !== false || stripos(\Request::url(), '127.0.0.1') !== false || stripos(\Request::url(), 'rsudbali') !== false) {{-- --}} @else {{-- --}} @endif {{-- --}} @php $tr = new GoogleTranslate(); $tr->setSource(); $indo = $res['indo']; @endphp
{{-- --}}
s

@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

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


{{ $indo ? 'RINCIAN BIAYA' : 'COST DETAIL' }}
{{-- --}}
{{ $indo ? 'No. Registrasi' : 'Registration Number' }} : {{ $res['identitas']->noregistrasi }} Unit : {{ $res['identitas']->namadepartemen }}
{{ $indo ? 'No. RM / Umur' : 'NMR / Age' }} : {{ $res['identitas']->nocm }} / {{ $indo ? $res['identitas']->umur : $tr->translate($res['identitas']->umur) }} {{ $indo ? "Ruang" : $tr->translate('Ruang') }} : {{ $res['identitas']->namaruangan }}
{{ $indo ? "Nama Pasien" : $tr->translate('Nama Pasien') }} : {{ $res['identitas']->namapasien . ' (' . ($indo ? $res['identitas']->jeniskelamin : $tr->translate($res['identitas']->jeniskelamin)). ')' }} {{ $indo ? 'Tgl Masuk' : 'Date of Entry'}} : {{ date_format(date_create($res['identitas']->tglregistrasi), 'd/m/Y') }}
{{ $indo ? 'DPJP' : $tr->translate('Dokter')}} : {{ $res['identitas']->namalengkap }} {{ $indo ? 'Tgl Pulang' : 'Date of Discharge'}} : {{ date_format(date_create($res['identitas']->tglpulang), 'd/m/Y') }}
No SEP : {{ $res['identitas']->nosep }} Type : {{ $res['identitas']->kelompokpasien }}
No SEP : {{ $res['identitas']->nosep }} {{ $indo ? 'No Kartu' : $tr->translate('Nomor Kartu')}} : {{ $res['identitas']->nobpjs }} {{ $indo ? 'Penjamin' : $tr->translate('Penjamin')}} : {{ $res['identitas']->namarekanan }}
{{-- --}} {{-- --}} {{-- --}} @php $nomor = 1; $totaltagihan = 0; $totaldiskon = 0; $jumlahbill = 0; $totaldiklaim = 0; @endphp @foreach ($res['billing'] as $ruangan) @php $total = 0; $diskon = 0; @endphp @foreach ($ruangan as $item) {{-- --}} {{-- --}} {{-- @php $nomor = $nomor + 1; $total = $total + $item->total; $diskon = $diskon + $item->diskon; @endphp @endforeach @php $totaltagihan = $totaltagihan + $total; $totaldiskon = $totaldiskon + $diskon; $jumlahbill = $totaltagihan - $totaldiskon; @endphp @endforeach
No Tanggal {{ $indo ? 'Deskripsi' : $tr->translate('Deskripsi')}} Section Dokter {{ $indo ? 'Tarif' : 'Cost' }} Qty Sub Total
{{ $indo ? strtoupper($ruangan[0]->namaruangan) : (($ruangan[0]->namaruanganenglish == 'Medicine' || $ruangan[0]->namaruanganenglish == 'Laboratory' || $ruangan[0]->namaruanganenglish == 'Radiology' || $ruangan[0]->namaruanganenglish == 'Polyclinic/IGD' || $ruangan[0]->namaruanganenglish == 'Treatment') ? strtoupper($ruangan[0]->namaruanganenglish) : strtoupper($tr->translate($ruangan[0]->namaruangan))) }}
{{ $nomor }} {{ date_format(date_create($data->tglpelayanan), 'd/m/Y') }} {{ $indo ? $item->namaproduk : $tr->translate($item->namaproduk) }}{{ $ruangan[0]->namaruangan == 'Sewa Kamar' ? ' '.$item->namakelaspp : '' }} {{ $item->ruang_group }} {{ number_format($item->hargasatuan, 0, '.', ',') }} x{{ $item->jumlah }} {{ number_format($item->diskon, 0, '.', ',') }} {{ number_format($item->jasa, 0, '.', ',') }} --}} {{ number_format($item->total, 0, '.', ',') }}
{{ number_format($total, 0, '.', ',') }}
@if ($res['ismultipenjamin'] == true) @endif
@if ($res['pengembalian'] > 0) @endif {{-- --}} @if ($res['iurbayar'] != 0) @endif
{{ $indo ? 'TOTAL TAGIHAN' : $tr->translate('TOTAL TAGIHAN')}} : {{ number_format($res['total'], 0, '.', ',') }}
{{ $indo ? 'DEPOSIT - UANG MUKA' : 'Down Payment'}} : {{ number_format($res['deposit'], 0, '.', ',') }}
{{ $indo ? 'PENGEMBALIAN DEPOSIT' : $tr->translate('PENGEMBALIAN DEPOSIT')}} : {{ number_format($res['pengembalian'], 0, '.', ',') }}
DISKON : {{ number_format($totaldiskon, 0, '.', ',') }}
{{ $indo ? 'TOTAL DIKLAIM' : $tr->translate('TOTAL DIKLAIM') }} : {{ number_format($res['klaim'], 0, '.', ',') }}
{{ $indo ? 'DISKON' : $tr->translate('DISKON') }} : {{ number_format($res['diskon'], 0, '.', ',') }}
{{ $indo ? 'TOTAL BAYAR' : $tr->translate('TOTAL BAYAR') }} : {{ number_format($res['dibayar'], 0, '.', ',') }}
{{ $indo ? 'SISA HARUS BAYAR' : $tr->translate('SISA HARUS BAYAR') }} : {{ number_format($res['sisa'], 0, '.', ',') }}
{{ $indo ? 'IUR BAYAR' : $tr->translate('IUR BAYAR') }} : {{ number_format($res['iurbayar'], 0, '.', ',') }}
{{ $indo ? 'TERBILANG' : $tr->translate('TERBILANG') }} :
# {{ $indo ? strtoupper(App\Traits\Valet::static_terbilang($res['total'])) : $tr->translate(strtoupper(App\Traits\Valet::static_terbilang($res['total']))) }} #
{{ $indo ? 'Multi Penjamin' : $tr->translate('Multi Penjamin') }} :
@php $total = 0; @endphp @foreach ($res['multipenjamin'] as $item) @php $total = $total + $item->totalppenjamin; @endphp @endforeach
{{ $indo ? 'Penjamin' : $tr->translate('Penjamin') }} {{ $indo ? 'Jumlah' : $tr->translate('Jumlah') }}
{{ $item->namarekanan }} {{ number_format($item->totalppenjamin, 0, '.', ',') }}
{{ $indo ? 'JUMLAH' : $tr->translate('JUMLAH') }} {{ number_format($total, 0, '.', ',') }}
{!! $profile->namakota !!},  {{ date_format(date_create($res['identitas']->tglpulang), 'd/m/Y') }}
{{ $indo ? 'Penanggung Biaya' : $tr->translate('Penanggung Biaya') }} {{ $indo ? 'Kasir' : $tr->translate('Kasir') }}
{{ str_replace('( Laki-laki )', '', str_replace('( Perempuan )', '', $res['identitas']->namapasien)) }} {{ $res['closer'] }}