@extends('web.layout.default') @section('page_title') | {{ trans('labels.checkout') }} @endsection @section('content') @if (count($getcartlist) > 0) @php $totaltax = 0; $order_total = 0; $total_item_qty = 0; $totalcarttax = 0; @endphp @foreach ($taxArr['tax'] as $k => $tax) @php $rate = $taxArr['rate'][$k]; $totalcarttax += (float) $taxArr['rate'][$k]; @endphp @endforeach @foreach ($getcartlist as $item) @php $total_price = ($item['item_price'] + $item['addons_total_price'] + $item['extras_total_price']) * $item['qty']; $order_total += (float) $total_price; $total_item_qty += $item['qty']; @endphp @endforeach

{{ trans('labels.checkout') }}

{{ trans('labels.order_type') }}
@if ($getsettings->pickup_delivery == 1)
@elseif($getsettings->pickup_delivery == 2)
@elseif($getsettings->pickup_delivery == 3)
@endif
@if (helper::appdata()->ordertype_date_time == 1)
{{ trans('labels.date_time') }}
@endif
{{ trans('labels.customer_info') }}
{{ trans('labels.delivery_address') }}
@if (Auth::user() && Auth::user()->type == 2)
@if ($getaddresses->count() > 0) @endif
@endif
{{ trans('labels.shippingarea') }}

{{ trans('labels.choose_payment') }}

@include('web.paymentmethodsview')
@if (@helper::checkaddons('coupon'))
@if (session()->get('discount_data'))
@csrf
@else
@csrf
@endif
@endif

{{ trans('labels.payment_summary') }}

{{ trans('labels.subtotal') }}
{{ helper::currency_format($order_total) }}
@php if (session()->has('discount_data')) { $discount_amount = session()->get('discount_data')['offer_amount']; } else { $discount_amount = 0; } if (session()->has('addressdata')) { $grand_total = $order_total - $discount_amount + $totalcarttax; } else { $grand_total = $order_total - $discount_amount + $totalcarttax; } @endphp @if (session()->has('discount_data'))
{{ trans('labels.discount') }} {{ session()->has('discount_data') == true ? '(' . session()->get('discount_data')['offer_code'] . ')' : '' }}
- {{ helper::currency_format($discount_amount) }}
@endif @php $totalcarttax = 0; @endphp @foreach ($taxArr['tax'] as $k => $tax) @php $rate = $taxArr['rate'][$k]; $totalcarttax += (float) $taxArr['rate'][$k]; @endphp
{{ $tax }}
{{ helper::currency_format($rate) }}
@endforeach @php $delivery_charge = 0; @endphp
{{ trans('labels.delivery_charge') }}
{{ helper::currency_format(0) }}
{{ trans('labels.grand_total') }}
{{ helper::currency_format($grand_total) }}
{{ csrf_field() }}
@else @include('web.nodata') @endif @endsection @section('scripts') @endsection