@extends('frontend.layout') @section('pageHeading') {{ __('Checkout') }} @endsection @section('metaKeywords') @if (!empty($seoInfo)) {{ $seoInfo->meta_keyword_home }} @endif @endsection @section('metaDescription') @if (!empty($seoInfo)) {{ $seoInfo->meta_description_home }} @endif @endsection @section('style') @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_country')

{{ $message }}

@enderror
@error('billing_address')

{{ $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_country')

{{ $message }}

@enderror
@error('shipping_address')

{{ $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 => $item) @php $product = App\Models\Shop\Product::where('id', $key)->first(); $total += $item['price']; // calculate tax $taxAmount = $tax->product_tax_amount; @endphp
{{ strlen(@$item['title']) > 60 ? mb_substr(@$item['title'], 0, 60, 'UTF-8') . '...' : @$item['title'] }}
({{ $product->average_rating }})
{{ $item['quantity'] }} x {{ symbolPrice($product->current_price) }}
{{ symbolPrice($item['quantity'] * $product->current_price) }}
@endforeach
@php $position = $currencyInfo->base_currency_symbol_position; $symbol = $currencyInfo->base_currency_symbol; @endphp
{{ __('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')) * ($taxAmount / 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
@php // calculate grand total $grandTotal = $total - Session::get('discount') + $shipping_charge + $tax_amount; @endphp
{{ __('Total') }}
{{ $position == 'left' ? $symbol : '' }} {{ number_format($grandTotal, 2, '.', ',') }} {{ $position == 'right' ? $symbol : '' }}
@csrf

{{ __('Payment Method') }}

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

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

@endif
{{-- START: Authorize.net Card Details Form --}} {{-- END: Authorize.net Card Details Form --}} @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