@extends('user-front.layout') @php $user = getUser(); $permissions = []; if (!empty($user)) { $permissions = \App\Http\Helpers\UserPermissionHelper::packagePermission($user->id); $permissions = json_decode($permissions, true); } @endphp @section('meta-description', !empty($seo) ? $seo->checkout_meta_description : '') @section('meta-keywords', !empty($seo) ? $seo->checkout_meta_keywords : '') @section('breadcrumb_title', $pageHeading->checkout_page ?? __('Checkout')) @section('page-title', $pageHeading->checkout_page ?? __('Checkout')) @section('content')
@csrf @if (Session::has('stock_error'))

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

@endif
@if (Session::has('st_errors'))
    @foreach (Session::get('st_errors') as $sterr)
  • {{ $sterr }}
  • @endforeach
@endif
@if (session()->has('stock_out_error')) @foreach (session()->get('stock_out_error') as $error) @endforeach @endif @php $authCust = Auth::guard('customer')->user(); @endphp

{{ $keywords['Billing Details'] ?? __('Billing Details') }}

@error('billing_fname')

{{ convertUtf8($message) }}

@enderror
@error('billing_lname')

{{ convertUtf8($message) }}

@enderror
@error('billing_number')

{{ convertUtf8($message) }}

@enderror
@error('billing_email')

{{ convertUtf8($message) }}

@enderror
@error('billing_city')

{{ convertUtf8($message) }}

@enderror
@error('billing_country')

{{ convertUtf8($message) }}

@enderror
@error('billing_address')

{{ convertUtf8($message) }}

@enderror

{{ $keywords['Shipping Details'] ?? __('Shipping Details') }}

@error('shipping_fname')

{{ convertUtf8($message) }}

@enderror
@error('shipping_lname')

{{ convertUtf8($message) }}

@enderror
@error('shipping_number')

{{ convertUtf8($message) }}

@enderror
@error('shipping_email')

{{ convertUtf8($message) }}

@enderror
@error('shipping_city')

{{ convertUtf8($message) }}

@enderror
@error('shipping_state')

{{ convertUtf8($message) }}

@enderror
@error('shipping_country')

{{ convertUtf8($message) }}

@enderror
@error('shipping_address')

{{ convertUtf8($message) }}

@enderror

{{ $keywords['Cart Items'] ?? __('Cart Items') }}

@php $total = 0; @endphp
@if ($cart) @foreach ($cart as $key => $item) @php $total += $item['product_price'] * $item['qty']; $prd = \App\Models\User\UserItem::with([ 'itemContents' => function ($query) use ($userCurrentLang) { $query->where('language_id', $userCurrentLang->id); }, ])->findOrFail($item['id']); $content = $prd->itemContents->first(); @endphp
@if (!is_null($content)) Product @else Product @endif
{{ $item['qty'] }}
@if (!is_null($content)) {{ convertUtf8($content->title) }} @endif
{{ $keywords['Item Price'] ?? __('Item Price') }} : {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, $item['product_price']) }}
@if ($item['variations'])
{{ $keywords['Variations'] ?? __('Variations') }}:
@foreach ($item['variations'] as $key => $variation) @php //show variations name $vNameId = App\Models\User\ProductVariationContent::where( 'product_variation_id', $variation['variation_id'], ) ->pluck('variation_name') ->first(); $variant_id = App\Models\VariantContent::where('id', $vNameId) ->pluck('variant_id') ->first(); $variation_name = App\Models\VariantContent::where([ ['variant_id', $variant_id], ['language_id', $userCurrentLang->id], ]) ->pluck('name') ->first(); //show variation options name $vOptionId = App\Models\User\ProductVariantOptionContent::where([ ['language_id', $userCurrentLang->id], ['product_variant_option_id', $variation['option_id']], ]) ->pluck('option_name') ->first(); $vOptionName = App\Models\VariantOptionContent::where([ ['language_id', $userCurrentLang->id], ['id', $vOptionId], ]) ->pluck('option_name') ->first(); @endphp
{{ $variation_name }} : {{ $vOptionName }} ({{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, $variation['price']) }})
@endforeach
{{ $keywords['View Variations'] ?? __('View Variations') }} @endif
@endforeach @else {{ __('Cart is empty') }} @endif
@if (!onlyDigitalItemsInCart() && sizeof($shippings) > 0) @if (count($shippings) > 0)

{{ $keywords['Shipping Methods'] ?? __('Shipping Methods') }}

@foreach ($shippings as $key => $charge) @endforeach
# {{ $keywords['Method'] ?? __('Method') }} * {{ $keywords['Cost'] ?? __('Cost') }}

{{ $userCurrentCurr->symbol_position == 'left' ? $userCurrentCurr->symbol : '' }} {{ currency_converter_shipping($charge->charge, $charge->id) }} {{ $userCurrentCurr->symbol_position == 'right' ? $userCurrentCurr->symbol : '' }}
@else @php $hidden = 'hidden'; @endphp
@endif @endif

{{ $keywords['Order Summary'] ?? __('Order Summary') }}

{{ $keywords['Cart Total'] ?? __('Cart Total') }}
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, cartTotal()) }}
  • {{ $keywords['Discount'] ?? __('Discount') }}
    {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, $discount) }}

  • {{ $keywords['Subtotal'] ?? __('Subtotal') }}
    {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, cartSubTotal()) }}

    @if (!onlyDigitalItemsInCart() && sizeof($shippings) > 0) @php $scharge = round($shippings[0]->charge, 2); if (count($shippings) > 0) { $sh_id = $shippings[0]->id; } else { $sh_id = 0; } @endphp
  • {{ $keywords['Delivery Charge'] ?? __('Delivery Charge') }}
    {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, $sh_id > 0 ? currency_converter_shipping($scharge, $shippings[0]->id) : 0) }}
  • @else @php $scharge = 0; @endphp @endif @if (is_array($permissions) && in_array('GST Billing', $permissions))
  • {{ $keywords['Tax'] ?? __('Tax') }}({{ $userShop->tax }}%)
    {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, tax()) }}
  • @endif

{{ $keywords['Order Total'] ?? __('Order Total') }} {{ __('') }}
@php if (count($shippings) > 0) { $scharge = round($shippings[0]->charge, 2); $sh_id = $shippings[0]->id; } else { $sh_id = 0; } @endphp {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, cartSubTotal() + ($sh_id > 0 ? currency_converter_shipping($scharge, $shippings[0]->id) : 0) + tax()) }}
@if (!session()->has('coupon'))
@else
{{ $keywords['Coupon_already_applied'] ?? __('Coupon already applied') }}
@endif

{{ $keywords['Payment Method'] ?? __('Payment Method') }}

@include('user-front.payment-gateways') {{-- START: Offline Gateways Information & Receipt Area --}}
{{-- END: Offline Gateways Information & Receipt Area --}}
@endsection @section('scripts') {{-- START: Authorize.net Scripts --}} @if (!is_null(@$anerInfo)) @php if (@$anerInfo['sandbox_check'] == 1) { $anetSrc = 'https://jstest.authorize.net/v1/Accept.js'; } else { $anetSrc = 'https://js.authorize.net/v1/Accept.js'; } @endphp @endif @endsection