KLINIK BIDAN DEWI

INVOICE PEMBAYARAN

No. Invoice
{{ $transaction->transaction_code }}
Tanggal
{{ $transaction->paid_at?->format('d M Y') ?? $transaction->created_at->format('d M Y') }}
Nama Pasien
{{ $transaction->appointment->familyMember ? $transaction->appointment->familyMember->name : $transaction->patient->name }} @if($transaction->appointment->familyMember)
(Reservasi oleh: {{ $transaction->patient->name }}) @endif
Deskripsi Biaya
Jasa Layanan - {{ $transaction->appointment->service->name ?? '-' }} Rp {{ number_format($transaction->appointment->service->price ?? 0,0,',','.') }}

@php $totalObat = 0; @endphp @forelse($transaction->appointment?->medicalRecord?->prescriptions ?? [] as $p) @php $totalObat += $p->price ?? 0; @endphp @empty @endforelse
Rincian Obat
Nama Obat Harga
{{ $p->medicine->name ?? $p->medicine_name }} Rp {{ number_format($p->price ?? 0,0,',','.') }}
Tidak ada resep obat
Subtotal Obat Rp {{ number_format($totalObat,0,',','.') }}

@php $subtotal = ($transaction->subtotal_amount ?? 0); $fee = ($transaction->system_fee_amount ?? 0); @endphp {{-- SUBTOTAL --}} {{-- BIAYA ADMIN (TAMPIL HANYA JIKA ADA) --}} @if($fee > 0) @endif {{-- TOTAL TAGIHAN --}}
Subtotal Rp {{ number_format($subtotal,0,',','.') }}
Biaya Admin @if($transaction->system_fee_type == 'percent') ({{ $transaction->system_fee_value }}%) @endif Rp {{ number_format($fee,0,',','.') }}
Total Tagihan Rp {{ number_format($transaction->total_amount ?? 0,0,',','.') }}
Dibayar Rp {{ number_format($transaction->paid_amount ?? 0,0,',','.') }}
Status Pembayaran {{ $transaction->payment_status === 'paid' ? 'LUNAS' : 'BELUM LUNAS' }}


Terima kasih atas kepercayaan Anda berobat di Klinik Bidan Dewi.
Semoga lekas sehat.