@php($rtl = app()->getLocale() === 'ar')
🦷 {{ $plan->tenant->name }}

{{ __('Treatment plan') }}: {{ $plan->title }}

{{ __('Patient') }}:{{ $plan->patient->full_name }} {{ __('Phone') }}:{{ $plan->patient->phone }}
{{ __('Dentist') }}:{{ $plan->dentist->name }} {{ __('Date') }}:{{ $plan->created_at->format('Y-m-d') }}
{{ __('Status') }}:{{ $plan->status->label() }} {{ __('Plan no.') }}:{{ strtoupper(substr($plan->uuid, 0, 8)) }}
@foreach($plan->items->reject(fn ($i) => $i->status === \App\Enums\PlanItemStatus::Cancelled) as $i => $item) @endforeach
#{{ __('Procedure') }}{{ __('Tooth') }} {{ __('Surfaces') }}{{ __('Status') }}{{ __('Price (IQD)') }}
{{ $i + 1 }} {{ $item->procedure->name() }}@if($item->note) — {{ $item->note }}@endif {{ $item->tooth ?? '—' }} {{ $item->surfaces ? implode(',', $item->surfaces) : '—' }} {{ $item->status->label() }} {{ number_format($item->price) }}
{{ __('Subtotal') }}{{ number_format($plan->totalGross()) }} IQD
{{ __('Discount') }}− {{ number_format($plan->discount_amount) }} IQD
{{ __('Total') }}{{ number_format($plan->totalNet()) }} IQD
@if($plan->notes)

{{ __('Notes') }}: {{ $plan->notes }}

@endif
{{ $plan->tenant->name }} · {{ __('Generated by MediBook AI') }} · {{ now()->format('Y-m-d H:i') }} UTC