@php use Modules\Store\Entities\ProductSku; @endphp @extends(theme('layouts.master')) @section('title') {{Settings('site_title') ? Settings('site_title') : 'Infix LMS'}} | @lang('frontend.Payment Success') @endsection @section('js') @endsection @section('css') @endsection @section('mainContent')

{{__('frontend.Thank you for your purchase, You successfully place order')}}

{{__('frontend.Order Summary')}}

#INV-{{ $checkout->id + 1000 }}

@php $total = 0; $language_code = auth()->user()->language_code ?? 'en'; $sl = 1; @endphp @if(isModuleActive('Appointment') && $checkout->type=='appointment') @foreach ($checkout->bookings as $key => $item) @php $price = $item->purchase_price; $total += $price; @endphp
image

{{ @$item->userInfo->name }} - {{showDate($item->schedule->schedule_date)}}

{{ getPriceFormat($price,false) }}
@endforeach @else @foreach ($checkout->courses as $key => $item) @php $item_title =''; $item_image =''; $price = $item->original_price; // // if (isModuleActive('Store') && $item->is_store == 1) { // $price1 = $item->course->discount_price != 0 ? $item->course->discount_price : $item->course->price; // if (isModuleActive('Store') && $item->is_store && $item->product_sku_id) { // $sku =ProductSku::find($item->product_sku_id); // $price = $sku->price* $item->qty; // }else{ // $price = $price1 * $item->qty; // // } // // } $total += $price; @endphp
image

{{ @$item->course->getTranslation('title', $language_code) }}

{{ getPriceFormat($price,false) }}
@endforeach @endif
{{ __('student.Sub Total') }}:
{{ getPriceFormat($total,false) }}
{{ __('common.Discount') }}:
(-) {{ getPriceFormat($checkout->discount,false) }}
@if(isModuleActive('Tax'))
{{ __('tax.Tax') }}:
(+) {{ getPriceFormat($checkout->tax,false) }}
@endif
{{ __('student.Total') }}:
{{ getPriceFormat($checkout->purchase_price,false) }}
@endsection