@php if($order->payment_type == 1) $invoice_vat = $order->vat; else $invoice_vat = ($invoice->total * get_setting('vat')) / 100; $invoice_vat = number_format($invoice_vat, 2); if($invoice->status == 1) $invoice_img = 'invoice_succeeded.png'; elseif($invoice->status == 2) $invoice_img = 'invoice_waiting.png'; else $invoice_img = 'invoice_canceled.png'; @endphp {{ get_setting('site_name') }} - فاتورة الطلب رقم {{$order->id}}

فاتورة {{ invoice_num($invoice->id) }}


{{ get_setting('site_name') }}

المملكة العربية السعودية

{{ get_setting('site_main_address') }}
البريد الإلكتروني : {{ get_setting('site_email') }}
رابط الموقع : {{ url('') }}

رقم الفاتورة: {{ invoice_num($invoice->id) }}
كود الدورة: {{ $course->getCode() }}
تاريخ الفاتورة: {{ $invoice->created_at->toDateString() }}
@if(!empty(get_setting('vat_number'))) رقم الضريبي: {{ get_setting('vat_number') }} @endif
اسم المتدرّب
{{ (empty($order->student->name))? $order->user->name : $order->student->name }},
رقم الجوال
{{ (empty($order->student->phone))? $order->user->phone : $order->student->phone }}
البريد الإلكتروني
{{ (empty($order->student->email))? $order->user->email : $order->student->email }}
{{-- --}} @if(!empty($order->discount)) @endif @if($order->payment_type == 1) @endif {{-- --}} @if(!empty($order->discount)) @endif @if($order->payment_type == 1) @endif
اسم الدورةتاريخ البدايةقيمة الدورةالخصم على الدورةطريقة الدفع نسبة الدفعةالضريبةالمبلغ المدفوع
{{ $course->title }} - {{ $course->place->name }}{{ $course->getCourseStartDate() }}{{ $order->subtotal }} ر.س{{ (!empty($order->discount))? '-' . $order->discount . ' ر.س' : '-' }}{{ payment_method($invoice->payment_method) }} {{ $invoice->percent }}%{{ (!empty($order->vat))? $invoice_vat : 0 }} ر.س{{ $invoice->total }} ر.س

 

@if($order->payment_type == 1)
نسبة الضريبة قيمة الضريبة
{{ $order->vat_percent }} % {{ (!empty($order->vat))? $invoice_vat : 0 }} ريال سعودي
@endif
@if($order->payment_type == 1) اجمالي القيمة :
الضريبة :
@endif {{-- @if(!empty($order->discount)) الخصم :
@endif --}}
@if($order->payment_type == 1)
{{ $invoice->total - $invoice_vat }} ريال سعودي
{{ (!empty($order->vat))? $invoice_vat : 0 }} ريال سعودي

@endif
المجموع النهائي :
{{ $invoice->total }} ريال سعودي