@extends('layouts.admin.app') @section('title','Detail Transaksi') @section('content')
| Kode Transaksi | {{ $transaction->transaction_code }} |
|---|---|
| Nama Pasien |
{{ $transaction->appointment->familyMember
? $transaction->appointment->familyMember->name
: $transaction->patient->name }}
@if($transaction->appointment->familyMember)
(Reservasi oleh: {{ $transaction->patient->name }}) @endif |
| Total Pembayaran | Rp {{ number_format($transaction->total_amount ?? 0,0,',','.') }} |
| Metode Pembayaran | {{ ucfirst($transaction->payment_method ?? '-') }} |
| Status Pembayaran | {{ $transaction->payment_status === 'paid' ? 'Lunas' : ($transaction->payment_status === 'pending' ? 'Menunggu Pembayaran' : 'Gagal') }} |
| Tanggal Transaksi | {{ $transaction->created_at->format('d M Y H:i') }} |
| Catatan | {{ $transaction->notes ?? '-' }} |
| Jasa Layanan - {{ $transaction->appointment->service->name }} | Rp {{ number_format($transaction->appointment->service->price ?? 0,0,',','.') }} |
| Obat | |
| {{ $p->medicine->name ?? $p->medicine_name }} | Rp {{ number_format($p->price ?? 0,0,',','.') }} |
| Tidak ada resep obat | |
| Biaya Admin ({{ $transaction->system_fee_value }}%) | Rp {{ number_format($transaction->system_fee_amount,0,',','.') }} |
| Total Pembayaran | Rp {{ number_format($transaction->total_amount ?? 0,0,',','.') }} |