KLINIK MUSTIKA SANGSAKA KALIORANG
Jl. Ery Soeparjan, Desa Bukit Makmur, Kec. Kaliorang, Kab. Kutai Timur 75617, Kalimantan Timur
Telpon: 08575168765 | Email: mustikasangsakaklinik@gmail.com
INVOICE MCU {{ $invoice->company->name }}

Informasi Perusahaan:

Nama: {{ $invoice->company->name }}
@if ($invoice->company->address)
Alamat: {{ $invoice->company->address }}
@endif @if ($invoice->company->phone)
Telepon: {{ $invoice->company->phone }}
@endif @if ($invoice->company->email)
Email: {{ $invoice->company->email }}
@endif @if ($invoice->company->pic_name)
PIC: {{ $invoice->company->pic_name }}
@endif

Detail Invoice:

No. Invoice: {{ $invoice->invoice_number }}
Tanggal Invoice: {{ \App\Helpers\DateHelper::formatDate( $invoice->invoice_date, ) }}
Periode: {{ \App\Helpers\DateHelper::formatShort($invoice->period_start) }} - {{ \App\Helpers\DateHelper::formatShort($invoice->period_end) }}
@foreach ($invoice->items->where('excluded_from_invoice', false) as $item) @php // Ambil nama paket dari appointment jika tersedia, jika tidak gunakan dari invoice item $displayPackageName = $item->appointment && $item->appointment->mcuPackage ? $item->appointment->mcuPackage->name : $item->mcu_package_name; // Check if package includes DASS21 and calculate breakdown $packageIncludesDass21 = false; $basePrice = $item->package_price; $dass21Price = 0; if ($item->appointment && $item->appointment->mcuPackage) { $package = $item->appointment->mcuPackage; if ($package->includes_dass21 && $package->companyUsesDass21($invoice->company_id)) { $packageIncludesDass21 = true; $dass21Price = 75000; $basePrice = $item->package_price - $dass21Price; } } @endphp @endforeach
No Nama Pasien NIK Jenis Kelamin No. Rekam Medis Tanggal MCU Paket MCU Harga
{{ $loop->iteration }} {{ mb_strtoupper($item->display_patient_name) }} {{ $item->patient_nik ?? '-' }} @if ($item->patient_gender === 'female') Perempuan @else Laki-laki @endif {{ $item->medical_record_number ?? '-' }} {{ \App\Helpers\DateHelper::formatShort($item->mcu_date) }} {{ $displayPackageName }}
@if ($packageIncludesDass21) {{-- Dasar: Rp {{ number_format($basePrice, 0, ',', '.') }}
+ DASS21: Rp {{ number_format($dass21Price, 0, ',', '.') }}
--}} Total: Rp {{ number_format($item->package_price, 0, ',', '.') }}
@else Rp {{ number_format($item->package_price, 0, ',', '.') }} @endif
Rp {{ number_format($item->package_price, 0, ',', '.') }}
Jumlah Pasien: {{ $invoice->total_patients }} orang
Subtotal: Rp {{ number_format($invoice->total_amount, 0, ',', '.') }}
TOTAL: Rp {{ number_format($invoice->total_amount, 0, ',', '.') }}
@if ($invoice->notes)

Catatan:

{{ $invoice->notes }}

@endif

Mengetahui,

Direktur

@if (isset($qr_image) && $qr_image) QR Code Verifikasi Invoice @endif
dr. Said. M. Bin. Smith. MAP
Direktur

Informasi Pembayaran:

Bank: Bank BNI Cabang Bontang
No. Rekening: 0461060204
Atas Nama: Mustika Sangsaka Medika

Catatan: Mohon transfer sesuai dengan nominal yang tertera dan sertakan nomor invoice pada keterangan transfer.

{{-- --}}