@php use Modules\Store\Entities\ProductSku; @endphp

INV-{{ $enroll->id + 1000 }}

{{ Settings('site_name') }}

INV-{{ $enroll->id + 1000 }}

@if (isModuleActive('Store'))

{{ __('product.Order ID') }}: {{ @$enroll->order_number }}

@endif

{{ __('student.Date') }}: {{ date('d F Y', strtotime(@$enroll->created_at)) }}

{{ __('student.Pay Method') }}: @if($enroll->payment_method=='Wallet') {{__('payment.Wallet')}} @else {{ $enroll->payment_method }} @endif

@if ($enroll->courses->sum('purchase_price') == 0) {{ __('student.Status') }}: {{ __('common.Paid') }} @else {{ __('student.Status') }}: @php if (isModuleActive('Store')) { $is_paid = $enroll->status == 1 && $enroll->is_paid == 1; }else { $is_paid = $enroll->status == 1; } @endphp {{ $is_paid ? __('student.Paid') : __('student.Unpaid') }}

@endif

{{ __('student.Company') }}: {{ Settings('site_title') }}

{{ __('student.Phone') }}: {{ Settings('phone') }}

{{ __('student.Email') }}: {{ Settings('email') }}

{{ __('student.Address') }}: {{ Settings('address') }}

@if($enroll->purchase_price!= 0)

{{ __('student.Billed To') }},

{{ __('student.Name') }}: {{ @$enroll->bill->first_name }} {{ @$enroll->bill->last_name }}

{{ __('student.Phone') }}: {{ @$enroll->bill->phone }}

{{ __('student.Email') }}: {{ @$enroll->bill->email }}

{{__('frontend.Company Name')}}: {{ @$enroll->bill->company_name }}

{{ __('student.Address') }}: {{ @$enroll->bill->address1 }} {{ @$enroll->bill->address2 }} {{ @$enroll->bill->cityDetails->name }} {{ @$enroll->bill->zip_code }} {{ @$enroll->bill->countryDetails->name }}

@endif

{{ __('student.Order List') }}

@if (isModuleActive('Store')) @endif @php $total = 0; $language_code = auth()->user()->language_code ?? 'en'; $sl = 1; @endphp @if(isModuleActive('Appointment') && $enroll->type=='appointment') @if (isset($enroll->bookings)) @foreach ($enroll->bookings as $key => $item) @php $price = $item->original_price; $total = $total + $price; @endphp @if (isModuleActive('Store')) @endif @endforeach @endif @elseif (isModuleActive('Gift') && $enroll->courses->count() < $enroll->cart_count) @foreach ($enroll->gifts as $gift) @php $price = $gift->course->discount_price != 0 ? $gift->course->discount_price : $gift->course->price; $total = $total + $price; @endphp @endforeach @else @if (isset($enroll->courses)) @foreach ($enroll->courses as $key => $item) @if (isModuleActive('Store')) @endif @php $price1 =$item->original_price; $price =$item->original_price * ($item->qty??1); $total = $total + $price; @endphp {{-- --}} @endforeach @endif @endif @if (isModuleActive('Store')) @endif @if (isModuleActive('Store')) @endif @if ($enroll->discount == 0) @else @endif @if (isModuleActive('Store')) @endif @if (hasTax()) @if (isModuleActive('Store')) @endif @endif @if (isModuleActive('Store')) @endif
{{ __('common.SL') }} {{ __('courses.Course') }} / {{ __('student.Product') }} {{ __('common.Name') }}{{ __('product.Type') }} {{ __('student.Quantity') }} {{ __('student.Price') }} {{ __('student.Total') }}
{{ $sl++ }}
{{ @$item->userInfo->name }} - {{showDate($item->schedule->schedule_date)}}
{{trans('common.N/A')}} {{translatedNumber(1)}} {{ getPriceFormat($price,false) }} {{ getPriceFormat($price,false) }}
{{ $sl++ }}
{{ @$gift->course->getTranslation('title', $language_code) }}
{{ getPriceFormat($gift->price,false) }}
{{ $sl++ }}
{{ @$item->course->getTranslation('title', $language_code) }}
{{ $item->is_store ? ($item->course->product->type == 2 ? __('product.Physical') : __('product.Virtual')) : __('product.Virtual') }} {{ $item->qty>0?$item->qty:1 }} {{ getPriceFormat($price1,false) }}{{ getPriceFormat($price1) }} {{ getPriceFormat($price,false) }}
{{ __('student.Sub Total') }} {{ getPriceFormat($total,false) }}
{{ __('common.Discount') }}0{{ getPriceFormat($enroll->discount,false) }}
{{ __('product.shipping_charge') }} {{ getPriceFormat($enroll->shipping_cost,false) }}
{{ __('tax.TAX') }} {{ $enroll->tax == 0 ? 0 : getPriceFormat($enroll->tax,false) }}
{{ __('student.Total') }} {{ getPriceFormat($enroll->purchase_price,false) }}