{{ __('prescription.preview') }}

{{ __('invoice.singular') }}
{{ __('patient.name') }}
{{ $patient?->name ?? '-' }}
{{ __('patient.phone') }}
{{ $patient?->phone ?? '-' }}
{{ __('invoice.subtotal') }}৳{{ number_format($totals['subtotal'], 2) }}
{{ __('invoice.total') }}৳{{ number_format($totals['total'], 2) }}
{{ __('invoice.due_amount') }}৳{{ number_format($totals['due'], 2) }}
{{ __('invoice.items') }}
@foreach(($data['items'] ?? []) as $item) @if (!empty($item['description']))
{{ $item['description'] }} x {{ $item['quantity'] ?? 1 }} ৳{{ number_format(((float) ($item['amount'] ?? 0)) * ((float) ($item['quantity'] ?? 1)), 2) }}
@endif @endforeach