@extends('frontend.layout') @section('pageHeading') @if (!empty($pageHeading)) {{ $pageHeading->checkout_page_title }} @endif @endsection @section('content') @includeIf('frontend.partials.breadcrumb', [ 'breadcrumb' => $bgImg->breadcrumb, 'title' => $pageHeading ? $pageHeading->checkout_page_title : '', ])
@csrf
{{-- show error message for attachment (Offline) --}} @error('attachment')
{{ $message }}
@enderror

{{ __('Billing Details') }}

@error('billing_first_name')

{{ $message }}

@enderror
@error('billing_last_name')

{{ $message }}

@enderror
@error('billing_email')

{{ $message }}

@enderror
@error('billing_contact_number')

{{ $message }}

@enderror
@error('billing_address')

{{ $message }}

@enderror
@error('billing_city')

{{ $message }}

@enderror
@error('billing_state')

{{ $message }}

@enderror
@error('billing_country')

{{ $message }}

@enderror

{{ __('Shipping Details') }}

@error('shipping_first_name')

{{ $message }}

@enderror
@error('shipping_last_name')

{{ $message }}

@enderror
@error('shipping_email')

{{ $message }}

@enderror
@error('shipping_contact_number')

{{ $message }}

@enderror
@error('shipping_address')

{{ $message }}

@enderror
@error('shipping_city')

{{ $message }}

@enderror
@error('shipping_country')

{{ $message }}

@enderror
@php $position = $currencyInfo->base_currency_symbol_position; $symbol = $currencyInfo->base_currency_symbol; @endphp
@if ($status == false && count($charges) > 0)

{{ __('Shipping Methods') }}

@foreach ($charges as $charge) @endforeach
# {{ __('Method') }} {{ __('Cost') }}
first ? 'checked' : '' }} name="shipping_charge" id="{{ 'shipping-charge-' . $charge->id }}" value="{{ $charge->id }}" data-shipping_charge="{{ $charge->shipping_charge }}">

{{ $charge->title }}

{{ $charge->short_text }}

{{ $position == 'left' ? $symbol : '' }}{{ $charge->shipping_charge }}{{ $position == 'right' ? $symbol : '' }}
@endif

{{ __('Order Summary') }}

@foreach ($productItems as $key => $item) @endforeach
{{ __('Product') }}   {{ __('Quantity') }} {{ __('Total') }}
{{ $position == 'left' ? $symbol : '' }}{{ number_format($item['price'], 2, '.', ',') }}{{ $position == 'right' ? $symbol : '' }}

{{ __('Charge Summary') }}

@php // calculate total price $total = 0; foreach ($productItems as $key => $item) { $total += $item['price']; } // get the first shipping charge $shippingCost = $charges->first(); // calculate tax $taxAmount = $tax->product_tax_amount; $calculatedTax = $total * ($taxAmount / 100); // calculate grand total $grandTotal = $total + $shippingCost->shipping_charge + $calculatedTax; @endphp
  • {{ __('Cart Total') }} {{ $position == 'left' ? $symbol : '' }}{{ number_format($total, 2, '.', ',') }}{{ $position == 'right' ? $symbol : '' }}
  • {{ __('Discount') }} () {{ $position == 'left' ? $symbol : '' }}0.00{{ $position == 'right' ? $symbol : '' }}
  • {{ __('Subtotal') }} {{ $position == 'left' ? $symbol : '' }}{{ number_format($total, 2, '.', ',') }}{{ $position == 'right' ? $symbol : '' }}
  • @if ($status == false)
  • {{ __('Shipping Charge') }} () {{ $position == 'left' ? $symbol : '' }}{{ $shippingCost->shipping_charge }}{{ $position == 'right' ? $symbol : '' }}
  • @endif
  • {{ __('Tax') }} {{ '(' . $tax->product_tax_amount . '%)' }} () {{ $position == 'left' ? $symbol : '' }}{{ number_format($calculatedTax, 2, '.', ',') }}{{ $position == 'right' ? $symbol : '' }}
  • {{ __('Grand Total') }} {{ $position == 'left' ? $symbol : '' }}{{ number_format($grandTotal, 2, '.', ',') }}{{ $position == 'right' ? $symbol : '' }}

{{ __('Coupon') }}

{{ __('Pay via') }}

@if (count($onlineGateways) > 0) @foreach ($onlineGateways as $onlineGateway)
keyword ? 'checked' : '' }} >
@if ($onlineGateway->keyword == 'iyzico')
@error('identity_number')

{{ $message }}

@enderror
@error('zipcode')

{{ $message }}

@enderror
@endif @if ($onlineGateway->keyword == 'stripe')
@endif @endforeach @endif @if (count($offlineGateways) > 0) @foreach ($offlineGateways as $offlineGateway)
@if ($offlineGateway->has_attachment == 1)
@endif @if (!is_null($offlineGateway->short_description))

{{ $offlineGateway->short_description }}

@endif @if (!is_null($offlineGateway->instructions))

{!! replaceBaseUrl($offlineGateway->instructions, 'summernote') !!}

@endif @endforeach @endif
@endsection @section('script') {{-- --}} @endsection