@php $status = $payment ? ucfirst($payment->status) : 'Free consultation'; $isPaid = $payment && $payment->status === 'paid'; $isFree = ($enquiry->payment_type ?? 'free') === 'free'; $documentNumber = $payment->order_number ?? ('MH-ENQ-' . $enquiry->id); @endphp
{{ $isPaid ? 'PAID' : ($isFree ? 'FREE' : 'UNPAID') }}
@if(!empty($invoiceLogoData)) @else
Mighty Health
@endif

{{ $isPaid ? 'Consultation Invoice' : 'Booking Summary' }}

Document: {{ $documentNumber }}
Issued: {{ now()->format('d M Y, h:i A') }}
{{ $status }}
Patient details
Patient name{{ $enquiry->name ?: 'N/A' }} Age / Date of birth{{ $enquiry->dob ?: 'Not provided' }}
Email{{ $enquiry->email ?: 'N/A' }} Phone{{ ($enquiry->phone_country_code ?? '') }} {{ $enquiry->phone ?: 'N/A' }}
Consultation details
@if($enquiry->complete_address)@endif @if(!empty($enquiry->message)) @endif
Enquiry ID#{{ $enquiry->id }} Consultation type{{ ucfirst($enquiry->type ?: 'Consultation') }}
Doctor{{ optional($enquiry->doctor)->title ?: 'Not selected' }} Disease{{ optional($enquiry->disease)->name ?: 'Not selected' }}
Treatment{{ optional($enquiry->treatment)->title ?: 'Not selected' }}
Address{{ $enquiry->complete_address }}
Appointment date and time{{ $enquiry->appointment_schedule ?: 'To be confirmed by our team' }}
Patient message{{ $enquiry->message }}
Payment details
Payment type{{ $enquiry->payment_type === 'free' ? 'Free consultation' : ($payment && $payment->payment_method ? strtoupper($payment->payment_method) : 'Not available') }} Payment status{{ $status }}
Order number{{ $payment->order_number ?? 'N/A' }} Transaction ID{{ optional($payment)->provider_payment_id ?: 'N/A' }}
DescriptionAmount
Consultancy charge{{ $enquiry->payment_currency }} {{ number_format((float) $enquiry->consultancy_charge, 2) }}
Total{{ $enquiry->payment_currency }} {{ number_format((float) $enquiry->consultancy_charge, 2) }}
@if(!$isPaid && ($enquiry->payment_type ?? 'free') === 'paid')
This booking summary is not proof of payment. The payment is currently marked as {{ strtolower($status) }}.
@endif