error 500 fix

This commit is contained in:
2026-10-31 15:34:53 +01:00
parent f7edd64c8a
commit a888fe3695
4 changed files with 37 additions and 10 deletions
+1 -1
View File
@@ -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">