@php use Modules\StudentSetting\Entities\Institute; $t = fn($key) => __('guestcheckout::guestcheckout.' . $key); $discountAmount = max($subtotal - $total, 0); $percent = $subtotal > 0 ? round(($discountAmount / $subtotal) * 100) : 0; @endphp @extends(theme('layouts.master')) @section('title') {{ Settings('site_title') ? Settings('site_title') : 'Infix LMS' }} | {{ $t('checkout') }} @endsection @section('css') @include('guestcheckout::_style') @endsection @section('mainContent')

{{ $t('checkout') }}

{{ $t('order_summary') }}

{{-- course --}}
{{ $course->title }}
{{ $course->title }}
{{ getPriceFormat($total) }} @if($discountAmount > 0) {{ getPriceFormat($subtotal) }} {{ $percent }}% {{ $t('discount') }} @endif
{{-- added by relech --}} @if(showCouponInput()) {{-- promo --}}
@if(!empty($coupon)) {{ $t('remove') }} @endif
@endif {{-- relech end --}} {{-- how it works --}}
{{ $t('how_checkout_works') }}

{{ $t('how_line_1') }}

{{ $t('how_line_2') }}

{{ $t('already_have_account') }} {{ $t('log_in_here') }} {{ $t('faster_checkout') }}

@csrf {{-- user info (fields follow the default registration form settings) --}}
{{ $t('user_information') }}
@if($custom_field->show_name)
required_name ? 'required' : '' }}> {{ $errors->first('name') }}
@endif
{{ $errors->first('email') }}
@if($custom_field->show_phone)
required_phone ? 'required' : '' }}> {{ $errors->first('phone') }}
@endif @if($custom_field->show_dob)
required_dob ? 'required' : '' }}> {{ $errors->first('dob') }}
@endif @if($custom_field->show_company)
required_company ? 'required' : '' }}> {{ $errors->first('company') }}
@endif @if($custom_field->show_identification_number)
required_identification_number ? 'required' : '' }}> {{ $errors->first('identification_number') }}
@endif @if($custom_field->show_job_title)
required_job_title ? 'required' : '' }}> {{ $errors->first('job_title') }}
@endif @if($custom_field->show_gender)
{{ $errors->first('gender') }}
@endif @if($custom_field->show_student_type)
{{ $errors->first('student_type') }}
@endif @if($custom_field->show_institute)
{{ $errors->first('institute_id') }}
@endif @if(saasEnv('NOCAPTCHA_FOR_REG') == 'true')
{!! NoCaptcha::display() !!} {{ $errors->first('g-recaptcha-response') }}
@endif
{{-- payment methods --}} {{-- order summary --}}
{{ $t('order_summary') }}
{{ $t('subtotal') }}{{ getPriceFormat($subtotal) }}
{{ $t('discount') }} @if($discountAmount > 0){{ $percent }}%@endif - {{ getPriceFormat($discountAmount) }}

{{ $t('total_amount') }}{{ getPriceFormat($total) }}
{{ $errors->first('terms') }}
@endsection @section('js') @if(saasEnv('NOCAPTCHA_FOR_REG') == 'true') {!! NoCaptcha::renderJs() !!} @endif @endsection