@extends('layouts.app') @section('title', 'فواتير سابقة') @section('body_class', '') @section('content')

فواتير سابقة

@if($orders->count() != 0)
@foreach($orders as $order)
{{ $order->course->title }} - {{ $order->course->place->name }} كود الدورة: 00109
رقم الطلب:
{{ $order->id }}
تاريخ الطلب:
{{ $order->created_at }}
طريقة الدفع:
{{ payment_type($order->payment_type) }}
@if($order->payment_type == 2) @php $installment_type = array_filter(json_decode($order->installment_type)); @endphp
السداد:
@foreach($installment_type as $ins) {{ "%". $ins . ((end($installment_type) === $ins)? '' : ' - ') }} @endforeach
@endif
@if(!empty($order->discount))
المبلغ قبل الخصم:
{{ $order->course->price }} ر.س
الضريبة قبل الخصم:
{{ $order->course->vat }} ر.س
@endif
المبلغ:
{{ $order->subtotal }} ر.س
ضريبة القيمة المضافة:
{{ $order->vat }} ر.س
@if(!empty($order->discount))
مقدار الخصم بكود الخصم:
-{{ $order->discount }} ر.س
@endif
المبلغ الاجمالي:
{{ $order->total }} ر.س
@if($order->invoices->count() != 0)

الفواتير المسددة

@foreach($order->invoices as $invoice) @endforeach
رقم الفاتورة تاريخ الفاتورة حالة الفاتورة بواسطة الاجمالي الفاتورة
{{ invoice_num($invoice->id)}} {{ $invoice->created_at }}
{{order_status($invoice->status)}}
{{ payment_method($invoice->payment_method)}} {{$invoice->total}} ر.س @if($invoice->status != 2) @else - @endif
@if(isset($installment_type) && count($installment_type) != $order->invoices->where('status', '<>', 0)->count()) @endif
@endif
@endforeach
@else

لايوجد فواتير سابقة

@endif
@if($courses->count() != 0)

دورات قد تهمك

@foreach($courses as $course) @include('partials.course_list') @endforeach
@endif
@endsection @section('js') @endsection