@if (app_setting('APP_MODE') == 'klinik') Detail Pembayaran Detail Pembayaran Pembayaran @else Detail Pembayaran Klinik Detail Pembayaran Klinik Pembayaran Klinik @endif @if($checkup->has_payed) Cetak @endif

@if (app_setting('APP_MODE') == 'klinik') NOTA PEMBAYARAN @else NOTA PEMBAYARAN KLINIK @endif

Rekam Medis: {{ optional($checkup->patient)->medical_record_number ?? '-' }}
Nomor Kartu: {{ optional($checkup->patient)->type_number ?? '-' }}
Nama: {{ optional($checkup->patient)->name ?? '-' }}
Tanggal Lahir: {{ optional($checkup->patient->birthday)->format('d/m/Y') ?? '-' }} ({{ optional($checkup->patient)->age ?? '-' }})
Tanggal Pemeriksaan: {{ $checkup->created_at->format('d/m/Y') ?? '-' }}
Alamat: {{ optional($checkup->patient)->address ?? '-' }}
Nomor Ponsel: {{ optional($checkup->patient)->phone_number ?? '-' }}
Jenis Registrasi: {{ $checkup->queuePatient->type ?? '-' }}
@if (app_setting('APP_MODE') == 'klinik')
@if($this->lab)
Laboratorium *Data Lab sedang diproses
-
@endif @if(json_decode($this->checkup->support->lab_result_impression)->data && !$this->lab) @forelse(optional(json_decode($checkup->support->lab_result_impression))->data as $key => $item) @foreach(json_decode(optional($checkup->getLab($item))->multiple) as $keylab => $lab)
@if(!$lab->format)
@else @endif @endforeach @empty @endforelse
Laboratorium Hasil Nilai Normal Satuan
{{ optional($checkup->getLab($item))->name ?? '-' }}
{{ $lab->pemeriksaan ?? '-' }} {{ optional(json_decode($checkup->support->lab_result_impression))->hasil[$key][$keylab] ?? '-' }} {{ $lab->nilai_normal ?? '-' }} {{ $lab->nilai_laki ?? '-' }} {{ $lab->nilai_perempuan ?? '-' }} {{ $lab->satuan ?? '-' }}
Tidak diinputkan.
Total
{{ money_format_idr($total['lab']) ?? '-' }}
@endif
@endif
@if(json_decode($checkup->management->prescriptions)) @if(app_setting('APP_MODE') == 'lab') @endif @forelse(json_decode($checkup->management->prescriptions) as $key => $prescription) @if(optional($prescription)->type == 'racikan') @else @if(app_setting('APP_MODE') == 'lab') @endif @if(isset($change_stock[$key])) @else @endif @endif @empty @endforelse
ObatJumlah {{-- Dosis --}} Harga Total
{{$prescription->racikan}} @if($checkup->has_payed != '1') @else @if(!isset($prescription->not_selected)) @endif @endif {{money_format_idr($this->totalHarga($key))}}
{{ optional($checkup->management->getDrug($prescription->obat))->name ?? '-' }} @if($checkup->has_payed != '1') @else @if(!isset($prescription->not_selected)) @endif @endif @if($checkup->has_payed != '1') @if(optional($checkup->management->getDrug($prescription->obat))->type == 'Generik') @endif @endif @if(isset($change_stock[$key])) {{ $change_stock[$key] }} @else {{ $prescription->jumlah ?? '-' }} @endif {{-- {{ $prescription->dosis ?? '-' }} --}} {{ money_format_idr(optional($checkup->management->getDrug($prescription->obat))->latestPrice()) ?? '-' }}{{ money_format_idr(optional($checkup->management->getDrug($prescription->obat))->latestPrice() * $change_stock[$key]) ?? '-' }}{{ money_format_idr(optional($checkup->management->getDrug($prescription->obat))->latestPrice() * $prescription->jumlah) ?? '-' }}
Tidak diinputkan.
Total
{{ money_format_idr($total['obat']) ?? '-' }}
@endif
@if(json_decode($checkup->diagnosis->services_id)) @forelse(json_decode($this->checkup->diagnosis->services_id) as $id) @empty @endforelse
Layanan Harga
{{ $this->checkup->diagnosis->getService($id)->name ?? '-' }} {{ money_format_idr($this->checkup->diagnosis->getService($id)->rates) ?? '-' }}
Tidak diinputkan.
Total
{{ money_format_idr($total['layanan']) ?? '-' }}
@endif
@if(json_decode($checkup->management->consumables)) @forelse(json_decode($this->checkup->management->consumables) as $consumable) @empty @endforelse
BHP Jumlah Keterangan Harga
{{ $this->checkup->management->getConsumable($consumable->bhp)->name ?? '-' }} {{ $consumable->jumlah ?? '-' }} {{ $consumable->keterangan ?? '-' }} {{ money_format_idr(optional($this->checkup->management->getConsumable($consumable->bhp))->price) ?? '-' }}
Tidak diinputkan.
Total
{{ money_format_idr($total['BHP']) ?? '-' }}
@endif
Pembayaran :
- Total Bayar
{{ money_format_idr($total_bayar) ?? '-' }}
- Jumlah Bayar
@if($checkup->has_payed) {{ money_format_idr($checkup->amount_paid) ?? '-' }} @else Rp. @endif
- Terbilang
{{ Str::title(in_number($total_bayar)) }}
- Metode Pembayaran
@if($checkup->has_payed) {{ $checkup->payment_method ?? '-' }} @else @foreach (app_const('PAYMENT_METHODS') as $payment) @endforeach @endif
- Kembalian
{{ money_format_idr($kembalian) ?? '-' }}
@if ($checkup->has_payed)

LUNAS

@endif
{{ app_setting('LOCATION') }}, {{ date('d/m/Y') }}
( {{ Str::title(auth()->user()->name) }} )
Terima Kasih telah melakukan pemeriksaan di Klinik {{ app_setting('APP_NAME') }}
@if($checkup->has_payed != '1')
Batal
@endif
@push('scripts') @endpush