@extends("front.$version.layout") @section('pagename') - {{ __('Checkout') }} @endsection @section('meta-keywords', "$be->checkout_meta_keywords") @section('meta-description', "$be->checkout_meta_description") @section('breadcrumb-title', convertUtf8($be->checkout_title)) @section('breadcrumb-subtitle', convertUtf8($be->checkout_subtitle)) @section('breadcrumb-link', __('Checkout')) @section('content')
@csrf @if (Session::has('stock_error'))

{{ Session::get('stock_error') }}

@endif

{{ __('Billing Address') }}

{{ __('Country') }} *
@php $bcountry = ''; if (empty(old())) { if (Auth::check()) { $bcountry = Auth::user()->billing_country; } } else { $bcountry = old('billing_country'); } @endphp
@error('billing_country')

{{ convertUtf8($message) }}

@enderror
{{ __('First Name') }} *
@php $bfname = ''; if (empty(old())) { if (Auth::check()) { $bfname = Auth::user()->billing_fname; } } else { $bfname = old('billing_fname'); } @endphp
@error('billing_fname')

{{ convertUtf8($message) }}

@enderror
{{ __('Last Name') }} *
@php $blname = ''; if (empty(old())) { if (Auth::check()) { $blname = Auth::user()->billing_lname; } } else { $blname = old('billing_lname'); } @endphp
@error('billing_lname')

{{ convertUtf8($message) }}

@enderror
{{ __('Address') }} *
@php $baddress = ''; if (empty(old())) { if (Auth::check()) { $baddress = Auth::user()->billing_address; } } else { $baddress = old('billing_address'); } @endphp
@error('billing_address')

{{ convertUtf8($message) }}

@enderror
{{ __('Town / City') }} *
@php $bcity = ''; if (empty(old())) { if (Auth::check()) { $bcity = Auth::user()->billing_city; } } else { $bcity = old('billing_city'); } @endphp
@error('billing_city')

{{ convertUtf8($message) }}

@enderror
{{ __('Contact Email') }} *
@php $bmail = ''; if (empty(old())) { if (Auth::check()) { $bmail = Auth::user()->billing_email; } } else { $bmail = old('billing_email'); } @endphp
@error('billing_email')

{{ convertUtf8($message) }}

@enderror
{{ __('Phone') }} *
@php $bnumber = ''; if (empty(old())) { if (Auth::check()) { $bnumber = Auth::user()->billing_number; } } else { $bnumber = old('billing_number'); } @endphp
@error('billing_number')

{{ convertUtf8($message) }}

@enderror

{{ __('Shipping Address') }}

{{ __('Country') }} *
@php $scountry = ''; if (empty(old())) { if (Auth::check()) { $scountry = Auth::user()->shpping_country; } } else { $scountry = old('shpping_country'); } @endphp
@error('shpping_country')

{{ convertUtf8($message) }}

@enderror
{{ __('First Name') }} *
@php $sfname = ''; if (empty(old())) { if (Auth::check()) { $sfname = Auth::user()->shpping_fname; } } else { $sfname = old('shpping_fname'); } @endphp
@error('shpping_fname')

{{ convertUtf8($message) }}

@enderror
{{ __('Last Name') }} *
@php $slname = ''; if (empty(old())) { if (Auth::check()) { $slname = Auth::user()->shpping_lname; } } else { $slname = old('shpping_lname'); } @endphp
@error('shpping_lname')

{{ convertUtf8($message) }}

@enderror
{{ __('Address') }} *
@php $saddress = ''; if (empty(old())) { if (Auth::check()) { $saddress = Auth::user()->shpping_address; } } else { $saddress = old('shpping_address'); } @endphp
@error('shpping_address')

{{ convertUtf8($message) }}

@enderror
{{ __('Town / City') }} *
@php $scity = ''; if (empty(old())) { if (Auth::check()) { $scity = Auth::user()->shpping_city; } } else { $scity = old('shpping_city'); } @endphp
@error('shpping_city')

{{ convertUtf8($message) }}

@enderror
{{ __('Contact Email') }} *
@php $smail = ''; if (empty(old())) { if (Auth::check()) { $smail = Auth::user()->shpping_email; } } else { $smail = old('shpping_email'); } @endphp
@error('shpping_email')

{{ convertUtf8($message) }}

@enderror
{{ __('Phone') }} *
@php $snumber = ''; if (empty(old())) { if (Auth::check()) { $snumber = Auth::user()->shpping_number; } } else { $snumber = old('shpping_number'); } @endphp
@error('shpping_number')

{{ convertUtf8($message) }}

@enderror
@if (!onlyDigitalItemsInCart() && count($shippings) > 0)

{{ __('Shipping Methods') }}

@foreach ($shippings as $key => $charge) @endforeach
# {{ __('Method') }} {{ __('Cost') }}

{{ convertUtf8($charge->title) }}

{{ convertUtf8($charge->text) }}

{{ $bex->base_currency_symbol_position == 'left' ? $bex->base_currency_symbol : '' }} {{ $charge->charge }} {{ $bex->base_currency_symbol_position == 'right' ? $bex->base_currency_symbol : '' }}
@else
@endif

{{ __('Order Summary') }}

@php $total = 0; @endphp @if ($cart) @foreach ($cart as $key => $item) @php $total += $item['price'] * $item['qty']; $product = App\Product::findOrFail($key); @endphp @endforeach @else @endif
{{ __('Product') }}   {{ __('Quantity') }} {{ __('Total') }}
{{ $bex->base_currency_symbol_position == 'left' ? $bex->base_currency_symbol : '' }}{{ $item['qty'] * $item['price'] }}{{ $bex->base_currency_symbol_position == 'right' ? $bex->base_currency_symbol : '' }}
{{ __('Cart is empty') }}

{{ __('Order Total') }}

  • {{ __('Cart Total') }} {{ $bex->base_currency_symbol_position == 'left' ? $bex->base_currency_symbol : '' }}{{ cartTotal() }}{{ $bex->base_currency_symbol_position == 'right' ? $bex->base_currency_symbol : '' }}
  • {{ __('Discount') }} () {{ $bex->base_currency_symbol_position == 'left' ? $bex->base_currency_symbol : '' }}{{ $discount }} {{ $bex->base_currency_symbol_position == 'right' ? $bex->base_currency_symbol : '' }}
  • {{ __('Subtotal') }} {{ $bex->base_currency_symbol_position == 'left' ? $bex->base_currency_symbol : '' }}{{ cartSubTotal() }}{{ $bex->base_currency_symbol_position == 'right' ? $bex->base_currency_symbol : '' }}
  • @if (!onlyDigitalItemsInCart() && sizeof($shippings) > 0) @php $scharge = round($shippings[0]->charge, 2); @endphp
  • {{ __('Shipping Charge') }} () {{ $bex->base_currency_symbol_position == 'left' ? $bex->base_currency_symbol : '' }}{{ $scharge }}{{ $bex->base_currency_symbol_position == 'right' ? $bex->base_currency_symbol : '' }}
  • @else @php $scharge = 0; @endphp @endif
  • {{ __('Tax') }} ({{ $bex->tax }}%) () {{ $bex->base_currency_symbol_position == 'left' ? $bex->base_currency_symbol : '' }}{{ tax() }}{{ $bex->base_currency_symbol_position == 'right' ? $bex->base_currency_symbol : '' }}
  • {{ __('Order Total') }} {{ $bex->base_currency_symbol_position == 'left' ? $bex->base_currency_symbol : '' }}{{ cartSubTotal() + $scharge + tax() }}{{ $bex->base_currency_symbol_position == 'right' ? $bex->base_currency_symbol : '' }}

{{ __('Coupon') }}

{{ __('Pay Via') }}

@includeIf('front.product.payment-gateways')
@endsection @section('scripts') @if (session()->has('unsuccess')) @endif @endsection