tax : 0; $discount = 0; $discount_type = 'amount'; $discount_on_product = 0; $variation_price = 0; ?> @if (session()->has('cart') && count(session()->get('cart')) > 0) get('cart'); if (isset($cart['tax'])) { $tax = $cart['tax']; } if (isset($cart['discount'])) { $discount = $cart['discount']; $discount_type = $cart['discount_type']; } ?> @foreach (session()->get('cart') as $key => $cartItem) @if (is_array($cartItem)) @endif @endforeach @endif
{{ translate('Item') }} {{ translate('Qty') }} {{ translate('Price') }} {{ translate('Delete') }}
{{ $cartItem['name'] }} image
{{ Str::limit($cartItem['name'], 12) }}
{{ Str::limit($cartItem['variant'], 20) }}
{{ \App\CentralLogics\Helpers::format_currency($product_subtotal) }}
get('address') && count(session()->get('address'))>0){ $delivery_fee = session()->get('address')['delivery_fee']; }else{ $delivery_fee = 0; } $total = $subtotal + $addon_price ; $total = $total - $discount_on_product; $tax_included = \App\Models\BusinessSetting::where(['key'=>'tax_included'])->first() ? \App\Models\BusinessSetting::where(['key'=>'tax_included'])->first()->value : 0; $total_tax_amount = $tax > 0 ? ($total * $tax) / 100 : 0; $total = $total + $delivery_fee; ?>
{{--
{{ translate('messages.Variation') }}:
{{ \App\CentralLogics\Helpers::format_currency($variation_price ) }}
--}}
{{ translate('messages.addon') }}:
{{ \App\CentralLogics\Helpers::format_currency($addon_price) }}
{{ translate('messages.subtotal') }} @php($tax_a=$total_tax_amount) @if ($tax_included == 1) ({{ translate('messages.TAX_Included') }}) @php($tax_a=0) @endif :
{{ \App\CentralLogics\Helpers::format_currency($subtotal + $addon_price) }}
{{ translate('messages.discount') }} :
-{{ \App\CentralLogics\Helpers::format_currency(round($discount_on_product, 2)) }}
{{ translate('messages.delivery_fee') }} :
{{ \App\CentralLogics\Helpers::format_currency($delivery_fee, 2) }}
@if ($tax_included != 1)
{{ translate('messages.tax') }} :
+ {{ \App\CentralLogics\Helpers::format_currency(round($total_tax_amount, 2)) }}
@endif


{{ translate('Total') }}:
{{ \App\CentralLogics\Helpers::format_currency(round($total + $tax_a, 2)) }}
@csrf
{{ translate('Payment Method') }}
    @php($cod=\App\CentralLogics\Helpers::get_business_settings('cash_on_delivery')) @if ($cod['status'])
  • @endif @php($wallet=\App\CentralLogics\Helpers::get_business_settings('wallet_status')) @if ($wallet)
  • @endif