@php $version = $basicInfo->theme_version; @endphp @extends('frontend.layout') @section('pageHeading') @if (!empty($pageHeading)) {{ $pageHeading->checkout_page_title }} @endif @endsection @section('metaKeywords') @if (!empty($seoInfo)) {{ $seoInfo->meta_keyword_home }} @endif @endsection @section('metaDescription') @if (!empty($seoInfo)) {{ $seoInfo->meta_description_home }} @endif @endsection @section('content') @includeIf('frontend.partials.breadcrumb', [ 'breadcrumb' => $bgImg->breadcrumb, 'title' => !empty($pageHeading) ? $pageHeading->checkout_page_title : __('Checkout'), ])
@csrf

{{ __('Billing Details') }}

@error('billing_name')

{{ $message }}

@enderror
@error('billing_phone')

{{ $message }}

@enderror
@error('billing_email')

{{ $message }}

@enderror
@error('billing_city')

{{ $message }}

@enderror
@error('billing_address')

{{ $message }}

@enderror
@error('billing_postcode')

{{ $message }}

@enderror
@error('billing_country')

{{ $message }}

@enderror

{{ __('Shipping Details') }}

@error('shipping_name')

{{ $message }}

@enderror
@error('shipping_phone')

{{ $message }}

@enderror
@error('shipping_email')

{{ $message }}

@enderror
@error('shipping_city')

{{ $message }}

@enderror
@error('shipping_address')

{{ $message }}

@enderror
@error('billing_postcode')

{{ $message }}

@enderror
@error('shipping_country')

{{ $message }}

@enderror
@if (!onlyDigitalItemsInCart())

{{ __('Shipping Method') }}

@foreach ($charges as $charge) @endforeach
# {{ __('Method') }} {{ __('Charge') }}
id ? 'checked' : '' }}> {{ symbolPrice($charge->shipping_charge) }}
@endif

{{ __('Order Summary') }}

@php $total = 0; @endphp @foreach ($productItems as $key => $productItem) @php $product = App\Models\Shop\Product::where('id', $key)->first(); $total += $productItem['price']; //calculate tax $taxAmout = $tax->product_tax_amount; @endphp @endforeach
x{{ $productItem['quantity'] }} {{ symbolPrice($productItem['quantity'] * $product->current_price) }}
@php $position = $currencyInfo->base_currency_symbol_position; $symbol = $currencyInfo->base_currency_symbol; @endphp

{{ __('Order Summary') }}

    @foreach ($productItems as $key => $item) @php $product = App\Models\Shop\Product::where('id', $key)->first(); @endphp
  • {{ strlen(@$item['title']) > 60 ? mb_substr(@$item['title'], 0, 10, 'UTF-8') . '...' : @$item['title'] }} {{ symbolPrice($item['quantity'] * $product->current_price) }}
  • @endforeach

{{ __('Cart Total') }}
{{ $position == 'left' ? $symbol : '' }}{{ $total }}{{ $position == 'right' ? $symbol : '' }}
@if (Session::has('discount'))
{{ __('Discount') }} - {{ $position == 'left' ? $symbol : '' }}{{ Session::get('discount') }}{{ $position == 'right' ? $symbol : '' }}
{{ __('Subtotal ') }} {{ $position == 'left' ? $symbol : '' }}{{ $total - Session::get('discount') }}{{ $position == 'right' ? $symbol : '' }}
@endif
  • @php $tax_amount = ($total - Session::get('discount')) * ($tax->product_tax_amount / 100); @endphp {{ __('Tax') }}({{ $tax->product_tax_amount . '%' }}) +{{ $position == 'left' ? $symbol : '' }} {{ number_format($tax_amount, 2, '.', ',') }} {{ $position == 'right' ? $symbol : '' }}
  • @if (!onlyDigitalItemsInCart()) @php $shipping_id = Session::get('shipping_id'); if ($shipping_id != null) { $charge = App\Models\Shop\ShippingCharge::where('id', $shipping_id)->first(); $shipping_charge = $charge->shipping_charge; } else { $charge = App\Models\Shop\ShippingCharge::first(); $shipping_charge = $charge->shipping_charge; } @endphp
  • {{ __('Shipping Charge') }} +{{ $position == 'left' ? $symbol : '' }}{{ $shipping_charge }}{{ $position == 'right' ? $symbol : '' }}
  • @else @php $shipping_charge = 0; @endphp @endif

{{ __('Total') }}
@php // calculate grand total $grandTotal = $total - Session::get('discount') + $shipping_charge + $tax_amount; @endphp {{ $position == 'left' ? $symbol : '' }} {{ number_format($grandTotal, 2, '.', ',') }} {{ $position == 'right' ? $symbol : '' }}

{{ __('Payment Method') }}

@if (Session::has('error'))

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

@endif
@php $display = 'none'; @endphp
    @foreach ($offline_gateways as $offlineGateway)
    @if (!is_null($offlineGateway->short_description))

    {{ $offlineGateway->short_description }}

    @endif @if (!is_null($offlineGateway->instructions))
    {!! replaceBaseUrl($offlineGateway->instructions, 'summernote') !!}
    @endif @if ($offlineGateway->has_attachment == 1)

    @error('attachment')

    {{ $message }}

    @enderror
    @endif
    @endforeach
    @endsection @section('script') @endsection