@extends('admin.layouts.master') @section('title', 'خطة علاج رقم '.$plan->id) @section('content')
المريض:
{{ $plan->patient?->first_name }} {{ $plan->patient?->last_name }}
كود: {{ $plan->patient?->code ?? '-' }}
الطبيب: {{ $plan->doctor?->user?->name ?? '-' }}
السن: @if($plan->patient?->birth_date) {{ \Carbon\Carbon::parse($plan->patient->birth_date)->age }} سنة @else — @endifالعنوان: {{ $plan->title ?: '-' }}
الحالة:
إجمالي تقديري: {{ number_format($total, 2) }} ريال
ملاحظات الخطة:
{{ $plan->description ?: '-' }}
| # | الخدمة | السن / السطح | العدد | السعر | الخصم | الإجمالي | الحالة | الزيارة | إجراءات |
|---|---|---|---|---|---|---|---|---|---|
| {{ $item->id }} |
@if($item->service)
{{ $item->service->name }}
@else
—
@endif
@if($item->notes)
{{ $item->notes }} @endif |
{{ $item->tooth_number ?: '-' }} {{ $item->surface ?: '' }} |
{{ $item->quantity }} |
{{ number_format($item->price, 2) }}
|
{{ number_format($discountAmount, 2) }}
|
{{ number_format($lineTotal, 2) }}
|
@if($item->visit)
زيارة رقم {{ $item->visit->id }} {{ $item->visit->visit_date ?? '' }} @else — @endif |
||
| لا توجد بنود مضافة لهذه الخطة بعد. | |||||||||
| الإجمالي قبل الخصم |
{{ number_format($subtotal, 2) }}
|
||||||||
| إجمالي الخصومات |
{{ number_format($totalDiscount, 2) }}
|
||||||||
| الإجمالي النهائي |
{{ number_format($grandTotal, 2) }}
|
||||||||