error 500 fix
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
|
||||
<!-- Cart Button with Counter -->
|
||||
@php
|
||||
$cartItems = session('cart', []);
|
||||
$cartItems = is_array(session('cart')) ? session('cart') : [];
|
||||
$cartCount = array_sum(array_column($cartItems, 'quantity'));
|
||||
@endphp
|
||||
<a href="{{ route('cart.index') }}" class="relative p-2.5 rounded-xl border border-slate-200 bg-white hover:bg-slate-50 text-slate-700 transition flex items-center space-x-2 shadow-2xs group">
|
||||
|
||||
Reference in New Issue
Block a user