Commit 68a86772 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix EventStatus enum used as array key in public events index

Same ->value fix as registration list — enum object cannot be used
directly as array offset.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 35656375
...@@ -43,8 +43,8 @@ class="w-full h-auto object-contain group-hover:scale-105 transition-transform d ...@@ -43,8 +43,8 @@ class="w-full h-auto object-contain group-hover:scale-105 transition-transform d
{{-- Status Badge --}} {{-- Status Badge --}}
<div class="absolute top-3 start-3"> <div class="absolute top-3 start-3">
<span class="inline-block px-2.5 py-1 text-xs font-bold rounded-full {{ $statusColors[$event->status] ?? 'bg-gray-100 text-gray-800' }}"> <span class="inline-block px-2.5 py-1 text-xs font-bold rounded-full {{ $statusColors[$event->status->value ?? $event->status] ?? 'bg-gray-100 text-gray-800' }}">
{{ $statusLabels[$event->status] ?? $event->status }} {{ $statusLabels[$event->status->value ?? $event->status] ?? $event->status }}
</span> </span>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment