tax; $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('messages.item')}} {{translate('messages.qty')}} {{translate('messages.price')}} {{translate('messages.delete')}}
{{$cartItem['name']}} image
{{Str::limit($cartItem['name'], 10)}}
{{Str::limit($cartItem['variant'], 20)}}
{{\App\CentralLogics\Helpers::format_currency($product_subtotal)}}
has('address') && count(session()->get('address'))>0){ $add = true; $delivery_fee = session()->get('address')['delivery_fee']; }else{ $delivery_fee = 0; } $total = $subtotal + $addon_price; $discount_amount = $discount_type == 'percent' && $discount > 0 ? (($total - $discount_on_product) * $discount) / 100 : $discount; $total -= $discount_amount + $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; $tax_a=$total_tax_amount; if ($tax_included == 1){ $tax_a=0; } $total = $total + $delivery_fee; if (isset($cart['paid'])) { $paid = $cart['paid']; $change = $total+$tax_a-$paid; }else{ $paid = $total+$tax_a; $change = 0; } ?>
@csrf
{{translate('messages.addon')}}:
{{\App\CentralLogics\Helpers::format_currency($addon_price)}}
{{translate('messages.subtotal')}} @if ($tax_included == 1) ({{ translate('messages.TAX_Included') }}) @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) }}
{{translate('messages.extra_discount')}} :
- {{\App\CentralLogics\Helpers::format_currency(round($discount_amount,2))}}
@if ($tax_included != 1)
{{ translate('messages.vat/tax') }}:
+ {{\App\CentralLogics\Helpers::format_currency(round($total_tax_amount,2))}}
@endif

{{ translate('Total') }}:
{{\App\CentralLogics\Helpers::format_currency(round($total+$tax_a, 2))}}
{{ translate($add ? 'messages.Payment Method' : 'Paid by') }}
    @if ($add) @php($cod=\App\CentralLogics\Helpers::get_business_settings('cash_on_delivery')) @if ($cod['status'])
  • @endif @else
  • @endif
@if (!$add)
{{ \App\CentralLogics\Helpers::format_currency($paid) }}
{{ \App\CentralLogics\Helpers::format_currency($change) }}
@endif
{{--
--}}