Your Shopping Cart
@if ($cart_products->count() > 0)
@endif
PRODUCT
PRICE
{{-- DISCOUNT PRICE
--}}
QUANTITY
TOTAL
@foreach ($cart_products as $item)
@endforeach
@else
{{ $item->product_name }}
@if ($item->variant_name)Variant: {{ $item->variant_name }}
@endif
Price:
@if ($item->variant_price)
{{ (int) $item->variant_price }}
@else
{{ $item->product_price }}
@endif
@if ($item->variant_price)
{{ $item->variant_price * $item->product_quantity }}
@else
{{ $item->sale_price * $item->product_quantity }}
@endif
Your cart is empty
Looks like you haven't added anything to your cart yet.
Order Summary
@if (session()->has('coupon'))
Coupon Applied:
({{ session()->get('coupon')['name'] }})
Discount
- {{ $discount }}
Have a Coupon?
Subtotal
{{ session()->has('coupon') ? $cart_subtotal : $cart_subtotal }}
@if (!is_null($tax) && $tax > 0)
GST
{{ $tax }}
@endif
Total
@php
// Base total (tax applied if exists, otherwise subtotal)
$finaltotal = !is_null($tax) && $tax > 0 ? $newTotal : $cart_subtotal;
// Apply coupon if available
if(session()->has('coupon')) {
$finaltotal = $finaltotal - $discount;
}
@endphp
{{ max($finaltotal, 0) }}
Proceed to Checkout