@php $total = 0.00; if($cartSession = session()->get('cart')){ foreach($cartSession as $item){ $total += $item['total']; } } @endphp