@extends('frontend.layouts.app') @section('content')

{{ __('Checkout') }}

@if ($message = Session::get('error')) @endif
@csrf
{{ __('Billing Address') }}
@if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
@if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('street_address')) {{ $errors->first('street_address') }} @endif
@if ($student->country_id && $student->country) @else @endif @if ($errors->has('country_id')) {{ $errors->first('country_id') }} @endif
@if ($student->state_id && $student->state) @else @endif @if ($errors->has('state_id')) {{ $errors->first('state_id') }} @endif
@if ($student->city_id && $student->city) @else @endif @if ($errors->has('city_id')) {{ $errors->first('city_id') }} @endif
{{ __('Payment Method') }}
@if (get_option('paypal_status') == 1)
@endif @if (get_option('stripe_status') == 1)
@endif @if (get_option('bank_status') == 1)
@endif @if (get_option('mollie_status') == 1)
@endif @if (get_option('im_status') == 1)
@endif @if (get_option('razorpay_status') == 1)
@endif @if (get_option('paystack_status') == 1)
@endif @if (get_option('sslcommerz_status') == 1)
@endif @if (get_option('mercado_status') == 1)
@endif @if (get_option('flutterwave_status') == 1)
@endif @if (get_option('coinbase_status') == 1)
@endif @if (get_option('zitopay_status') == 1)
@endif @if (get_option('iyzipay_status') == 1)
@endif @if (get_option('bitpay_status') == 1)
@endif @if (get_option('braintree_status') == 1)
@endif
{{ __('We protect your payment information using encryption to provide bank-level security') }}

{{ $carts->count() }} {{ __('Items In Card') }}
@foreach ($carts as $cart) @endforeach
@if($cart->course_id) @if(@$cart->course) course @endif @elseif($cart->bundle_id) @if(@$cart->bundle) bundle course @endif @elseif($cart->consultation_slot_id) @if(@$cart->consultationSlot) bundle course @endif @endif
@if($cart->course_id) @if(@$cart->course) {{ @$cart->course->title }} @endif @elseif($cart->bundle_id) @if(@$cart->bundle) {{ @$cart->bundle->name }} @endif @elseif($cart->consultation_slot_id) @if(@$cart->consultationSlot) {{ $cart->consultationSlot->user->name }} @endif @endif
@if ($cart->course && $cart->course->instructor)

{{ $cart->course->instructor->name }}

@elseif($cart->bundle && $cart->bundle->user->instructor)

{{ $cart->bundle->user->instructor->name }}

@elseif($cart->consultation_slot_id)

(Consultation)

@endif
@if (get_currency_placement() == 'after') {{ get_number_format(@$cart->price, 2) }} {{ get_currency_symbol() }} @else {{ get_currency_symbol() }} {{ get_number_format(@$cart->price, 2) }} @endif

@if($carts->sum('shipping_charge') > 0) @endif
{{ __('Subtotal') }} @if (get_currency_placement() == 'after') {{ get_number_format($carts->sum('price')) }} {{ get_currency_symbol() }} @else {{ get_currency_symbol() }} {{ get_number_format($carts->sum('price')) }} @endif
{{ __('Discount') }} - @if (get_currency_placement() == 'after') {{ get_number_format($carts->sum('discount')) }} {{ get_currency_symbol() }} @else {{ get_currency_symbol() }} {{ get_number_format($carts->sum('discount')) }} @endif
{{ __('Shipping Charge') }} @if (get_currency_placement() == 'after') {{ get_number_format($carts->sum('shipping_charge')) }} {{ get_currency_symbol() }} @else {{ get_currency_symbol() }} {{ get_number_format($carts->sum('shipping_charge')) }} @endif
{{ __('Platform Charge') }} @if (get_currency_placement() == 'after') {{ get_platform_charge($carts->sum('price')+$carts->sum('shipping_charge')) }} {{ get_currency_symbol() }} @else {{ get_currency_symbol() }} {{ get_platform_charge($carts->sum('price')+$carts->sum('shipping_charge')) }} @endif
{{ __('Grand Total') }} @if (get_currency_placement() == 'after') {{ get_number_format($carts->sum('price') + $carts->sum('shipping_charge') + get_platform_charge($carts->sum('shipping_charge')+$carts->sum('price'))) }} {{ get_currency_symbol() }} @else {{ get_currency_symbol() }} {{ get_number_format($carts->sum('price') + $carts->sum('shipping_charge') + get_platform_charge($carts->sum('shipping_charge')+$carts->sum('price'))) }} @endif
{{ __('Conversion Rate') }} 1 {{ get_currency_symbol() }} = ?
In
@if (env('APP_DEMO') == 'active')
@else
@endif
@php $razorpay_pay_amount = $razorpay_grand_total_with_conversion_rate * 100; $orderId = rand(); @endphp
@csrf
@csrf {{-- required --}} {{-- required in kobo --}} {{ csrf_field() }}
@endsection @push('script') @if (get_option('sslcommerz_mode') == 'live') @else @endif @endpush