@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('bank_status') == 1)
@endif @if (get_option('stripe_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('mercadopago_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 @foreach(newGateway() as $index => $gateway) @if (get_option("{$gateway}_status") == 1)
@endif @endforeach
{{ __('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 @elseif($cart->product_id) @if(@$cart->product) product @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 @elseif($cart->product_id) @if(@$cart->product) {{ $cart->product->title }} @endif @elseif($cart->product_id) @if(@$cart->product) {{ $cart->product->title }} @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

@php $discount = $carts->sum('discount'); @endphp @if($carts->sum('shipping_charge') > 0) @endif @if(get_option('tax_system_enable')) @php $taxAmount = (($carts->sum('price') + get_platform_charge($carts->sum('price')+$carts->sum('shipping_charge'))+$carts->sum('shipping_charge'))/100)*get_option('tax_amount', 0); @endphp @endif
{{ __('Total') }} @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') }} {{$discount > 0 ? '-' : ''}} @if (get_currency_placement() == 'after') {{ get_number_format($discount) }} {{ get_currency_symbol() }} @else {{ get_currency_symbol() }} {{ get_number_format($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_number_format(get_platform_charge($carts->sum('price')+$carts->sum('shipping_charge'))) }} {{ get_currency_symbol() }} @else {{ get_currency_symbol() }} {{ get_number_format(get_platform_charge($carts->sum('price')+$carts->sum('shipping_charge'))) }} @endif
{{ __('Tax') }}: @if(get_currency_placement() == 'after') {{ get_number_format($taxAmount) }} {{ get_currency_symbol() }} @else {{ get_currency_symbol() }} {{ get_number_format($taxAmount) }} @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')) + ($taxAmount ?? 0)) }} {{ 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')) + ($taxAmount ?? 0)) }} @endif
{{ __('Conversion Rate') }} 1 {{ get_currency_symbol() }} = ?
In
@if (env('APP_DEMO') == 'active')
@else
@endif
@foreach(newGateway() as $index => $gateway) @endforeach @endsection @push('script') @if (get_option('sslcommerz_mode') == 'live') @else @endif @endpush