@php use Botble\Ecommerce\Facades\Cart; use Botble\Ecommerce\Facades\EcommerceHelper; use Botble\Ecommerce\Facades\OrderHelper; $cartCount = Cart::instance('cart')->count(); $rawSubTotal = Cart::instance('cart')->rawSubTotal(); $rawTax = EcommerceHelper::isTaxEnabled() ? Cart::instance('cart')->rawTax() : 0; $grandTotal = max(0, $rawSubTotal + $rawTax); @endphp @if ($cartCount > 0) @endif