@extends('user.auth.layout_profile') @section('content_profile')

Chi tiết đơn thuốc #{{ $prescription->prescription_code }}

👨‍🦰 Bệnh nhân

Họ tên: {{ $prescription->medical_certificate->patient->name }}

Ngày sinh: {{ $prescription->medical_certificate->patient->dob }}

🧑‍⚕️ Bác sĩ

Họ tên: {{ $prescription->doctor->name }}

Email: {{ $prescription->doctor->email }}

📝 Ghi chú

{{ $prescription->note ?? 'Không có ghi chú' }}

💊 Đơn thuốc
@foreach ($prescription->medicines as $index => $medicine) @endforeach
# Tên thuốc Liều lượng Số lượng Giá Tổng
{{ $index + 1 }} {{ $medicine->name }} {{ $medicine->pivot->dosage }} {{ $medicine->pivot->quantity }} {{ $medicine->base_unit }} {{ number_format($medicine->pivot->price) }} VNĐ {{ number_format($medicine->pivot->subtotal) }} VNĐ

Tổng tiền: {{ number_format($prescription->total_payment) }} VNĐ

💰 Trạng thái thanh toán
@if ($prescription->status == 1) Đã thanh toán @else Chưa thanh toán @endif
Quay lại
@endsection