@extends('front.layouts.master') @section('title', isset($title) ? $title : 'Home') @section('description', isset($description) ? $description : '') @section('keywords', isset($keywords) ? $keywords : '') @section('content')
@csrf
@if (!auth()->check())
@endif

{{ __('Billing Address') }}

{{-- //to do later --}}
@error('billing_PhoneNumber_country') {{ $message }} @enderror
@error('billing_PhoneNumber') {{ $message }} @enderror

{{ __('Shipping Address') }}

@error('shipping_name') {{ $message }} @enderror
@error('shipping_email') {{ $message }} @enderror
{{-- //to do later --}}
@error('shipping_PhoneNumber_country') {{ $message }} @enderror
@error('shipping_PhoneNumber') {{ $message }} @enderror
@error('shipping_street_address') {{ $message }} @enderror
@error('shipping_state') {{ $message }} @enderror
@error('shipping_zipcode') {{ $message }} @enderror
@error('shipping_country') {{ $message }} @enderror

{{ __('Payment Method') }}

@if(auth()->user()) @php $grandTotal = currencyConverter(\Cart::subtotal() + allsetting()['shipping_charge'] + tax_amount(\Cart::subtotal()) - Session::get('CouponAmount')) @endphp @if ((new \App\Helpers\LoyaltyPointHelper)->getRedeemAmount($grandTotal,auth()->user()->id)['points'] > 0) @endif {{-- --}}
{{ __('Points') }}/{{ __('Amount') }}
{{ __('points') }} / {{ __('JD') }}
payment card img
{{ __('HyperPay') }}
JD
payment card img
@endif
@foreach ($paymentPlatforms as $payment) @if (session()->get('razorpay-tansaction') == true) @else @if ($payment->slug == 'stripe') @endif @if ($payment->slug == 'sslcommerz') @endif @endif @endforeach
@if (env('COD_STATUS') == '1')
{{ env('COD_NAME') }}
@endif @if (env('HYPERPAY_STATUS') == '1')
{{ env('HYPERPAY_NAME') }}
@endif @error('payment') {{ $message }} @enderror
{{-- @if (auth()->check()) --}} {{-- @else @endif --}}

{{ __('Discount Codes') }}

@csrf
{{-- //to do later --}} {{--
{{__('Coupon discount valid on purchases above 40 JOD')}}
--}}
{{-- Cart Summary --}}

{{ __('Cart Summary') }}

{{ __('Edit') }}
@php $total = 0; @endphp @foreach ($content as $item) @endforeach
{{ __('Item') }} # {{ __('Price') }}
{{ \Illuminate\Support\Str::limit(productLangConverter($item->id), 48, $end='...') }} {{ $item->qty }} {{ currencyConverter($item->price * $item->qty) }}
{{--
    @php $total = 0; @endphp @foreach ($content as $item)
  • {{ $item->qty }} {{ productLangConverter($item->id) }}

    --}} {{--

    {{ __('Size:') }} {{ is_null($item->options->size) ? __('Free Size') : $item->options->size }}

    {{ __('Color:') }} @if (is_null($item->options->color)) {{ __('Any Color') }} @else @endif

    --}} {{--

    {{ currencyConverter($item->price * $item->qty) }}

  • @endforeach
--}}
  • {{ __('Subtotal') }} {{ currencyConverter(\Cart::subtotal()) }}
  • {{ __('Shipping Cost') }}
  • {{--
  • {{ __('VAT/Tax') }} {{ currencyConverter(tax_amount(\Cart::subtotal())) }}
  • --}} {{-- @if (auth()->user() )
  • {{ __('Member discount') }} {{ user_discount() . '%' }}
  • @endif @if (!empty(Session::get('CouponAmount')) )
  • {{ __('Coupon Discount (-)') }} {{ Session::get('CouponAmount') . '%' }}
  • @endif --}} @if (auth()->user() && user_discount() >= Session::get('CouponAmount'))
  • {{ __('Member discount') }} {{ user_discount() . '%' }}
  • @elseif(!empty(Session::get('CouponAmount')) )
  • {{ __('Coupon Discount (-)') }} {{ Session::get('CouponAmount') . '%' }}
  • @endif

{{ __('Total Cost') }} {{ currencyConverter(\Cart::subtotal() + allsetting()['shipping_charge'] + tax_amount(\Cart::subtotal()) - Session::get('CouponAmount')) }}

{{ __('note : prices include tax') }}
@push('post_script') @endpush @endsection