@php $subtotal = Cart::instance('shopping')->subtotal(); $subtotal=str_replace(',','',$subtotal); $subtotal=str_replace('.00', '',$subtotal); view()->share('subtotal',$subtotal); $shipping = Session::get('shipping')?Session::get('shipping'):0; $discount = Session::get('discount')?Session::get('discount'):0; @endphp
Cart Summary
Items {{Cart::instance('shopping')->count()}} (qty)
Total ৳{{$subtotal}}
Shipping ৳{{$shipping}}
Discount ৳{{$discount}}
Total ৳{{($subtotal+$shipping) - $discount}}