@extends('layouts.master') @section('css') @endsection @section('content')
@if(!$storeOnline['status'])
@php $openingHours = (!empty($storeOnline['result'])) ? "(" . date("H:i", strtotime($storeOnline['result']['startTime'])) . " - " . date("H:i", strtotime($storeOnline['result']['endTime'])) . ")" : ""; @endphp {{ $storeOnline['message'] .$openingHours}}
@endif @if($differentStore)
{!! $text !!}
@endif
@if (!empty($cart) && count($cart['items']) > 0) @php $userWallet=(isset($rewardPoints->total_amount))?$rewardPoints->total_amount:0; @endphp @foreach ($cart['items'] as $c) @php $variationMasterId = $c->variation_master_id; @endphp @endforeach @else

{{ __('front_site.cart_empty') }}

@endif
@if(count($relatedItems) >0) @endif @if(!empty($cart)) @php $eligible=false; @endphp @if(count($cart['items']) >0) @php $itemrewards=min(array_column($cart['items']->toArray(),'reward_points')); $eligible=($itemrewards <= $rewardPoints->total_amount)?true:false; @endphp @endif @if(($rewardPoints->total_amount > 0) && $eligible && false)
@endif

{{ __('front_site.promo_code')}}

  • {{ __('front_site.subtotal') }}
    @if($free)

    @if($prices==0) @php $taxremove=0; $taxremoves=0; @endphp @endif {{numberFormat( $prices-$taxremove)}}

    @else

    {{numberFormat( $cart['sub_total'])}}

    @endif
  • {{ __('front_site.vat') }}
    @if($free)

    @if($prices==0) @php $taxremove=0;@endphp @else @php $taxremove=$cart['total_tax'];@endphp @endif {{numberFormat( $taxremove)}}

    @else

    {{numberFormat( $cart['total_tax'])}}

    @endif
  • {{ __('front_site.promo_discount') }}
    @php $promo_value = (session('promo_value')) ? session('promo_value') : '0.00'; @endphp

    {{ ($promo_value > 0) ? ' - ' : '' }} {{ numberFormat($promo_value) }}

  • @php if($free) { $total = $prices; } else { $total = $cart['total_amount']; } $roundOff = 0; @endphp @if($promo_value > 0) @php $total = $total - $promo_value; @endphp @endif {{-- @php $roundOff = round($total) - $total; $total = round($total); @endphp --}} {{-- @if($roundOff != 0)
  • {{ __('front_site.round_off')}}

    {{ ($roundOff < 0) ? ' - ' : '' }}{{numberFormat(abs($roundOff))}}

  • @endif --}}
  • {{ __('front_site.total_with_tax')}}

    {{numberFormat($total)}}

@if ($storeOnline['status'] && !$differentStore)
@endif
@endif
@if(!empty($cart))

{{ __('front_site.order_details')}}

@foreach ($cart['items'] as $item) @php $item_price = ($item['variation_id']>0)?$item['variation_price']:$item['price']; $variationMasterId = $item->variation_master_id; @endphp @endforeach
  • {{ __('front_site.vat') }}
    @if($free)

    @if($pricess==0) @php $taxremoves=0;@endphp @else @php $taxremove=$cart['total_tax'];@endphp @endif {{numberFormat( $taxremove)}}

    @else

    {{numberFormat( $cart['total_tax'])}}

    @endif
  • {{ __('front_site.delivery_charges') }}

    @if($storeInfo->is_delivery_avail==1) {{ numberFormat($storeInfo->delivery_fee)}} @else {{numberFormat('0.00')}} @endif

  • {{ __('front_site.promo_discount') }}
    @php $promo_value = (session('promo_value')) ? session('promo_value') : '0.00'; @endphp

    {{ ($promo_value > 0) ? ' - ' : '' }} {{ numberFormat($promo_value) }}

  • {{-- @if($roundOff != 0)
  • {{ __('front_site.round_off') }}

    {{ ($roundOff < 0) ? ' - ' : '' }}{{numberFormat(abs($roundOff))}}

  • @endif --}}
    {{ __('front_site.total') }}
    @php if($free) { $total_price_with_tax = $prices; } else { $total_price_with_tax = $cart['total_amount']; } @endphp @if($promo_value > 0) @php $total_price_with_tax = $cart['total_amount'] - $promo_value; @endphp @endif @if($storeInfo->is_delivery_avail==1) @php $total_price_with_tax +=$storeInfo->delivery_fee; @endphp @endif {{-- @php $total_price_with_tax = round($total_price_with_tax); @endphp --}}

    {{ numberFormat($total_price_with_tax) }}

@endif @if (session('isGuest'))

Guest user details

@endif @if ($storeOnline['status'] && !$differentStore)
@if ($storeInfo->is_delivery_avail == 2)

{{ __('front_site.pickup') }}

@elseif ($storeInfo->is_delivery_avail == 1)

{{ __('front_site.delivery') }}

@else

{{ __('front_site.pickup_or_delivery')}}

@endif
@if ($storeInfo->is_delivery_avail == 3) @else @endif

{{ ($storeInfo->is_delivery_avail == 1)?__('front_site.delivery'):__('front_site.pickup')}}

@php $defaultDeliveryAddressId=''; @endphp @if($storeInfo->is_delivery_avail==1) @if(!empty($defaultAddress)) {{ $defaultAddress[0]['address']}} @php $defaultDeliveryAddressId=$defaultAddress[0]['id']; @endphp @else {{ __('front_site.select_address_msg')}} @endif @else {{ ($storeInfo->address) ? $storeInfo->address :session('st_city')}} @endif

{{ __('front_site.date') }}

{{ $today_date }}

{{ __('front_site.time') }}

@php $pickupDeliveryTime=($storeInfo->is_delivery_avail == 1)?$storeInfo->delivery_time:$storeInfo->pickup_time; $minimumOrder=($storeInfo->is_delivery_avail == 1)?$storeInfo->minimum_order:$storeInfo->minimum_order_pickup; @endphp {{ ($showAsap)?((!empty($pickupDeliveryTime) ) ? "ASAP (" . $pickupDeliveryTime . " Minutes)" : "ASAP"):"Select time"}}
@php $hideSection=($storeInfo->is_delivery_avail==1)?"":"hidden"; @endphp

{{ __('front_site.leave_outside')}}

{{ __('front_site.port_code')}}

@php $deliveryType=($storeInfo->is_delivery_avail==1)?"delivery":"pickup"; @endphp
@php $val = (session('isGuest'))?1:0; @endphp

{{ __('front_site.payment')}}

@if(isset($paymentArray) && count($paymentArray) > 0) @foreach($paymentArray as $payKey => $payValue)


@endforeach @endif
@else
{{ __('front_site.store_offline')}}
@endif

{{ __('front_site.thankyou') }}

{{ __('front_site.order_booked') }}

{{ __('front_site.done') }}

@endsection @section('script') @endsection