¿Qué vas a festejar?
Elige la categoría de tu evento.
@foreach ($invitationTypes as $type)
@php
$code = strtolower($type['code']);
$isQuince = in_array($code, ['quinces', 'quinceanos', '15anos']);
$bgColorClass = $isQuince ? 'bg-dark-custom' : 'bg-teal-custom';
// Icon logic (classes only, colors handled by CSS based on selection)
$iconName = 'bi-star-fill'; // default
if ($isQuince) $iconName = 'bi-crown';
elseif (in_array($code, ['boda', 'bodas', 'wedding', 'matrimonio'])) $iconName = 'bi-heart-fill';
elseif (in_array($code, ['cumple', 'cumples', 'cumpleanos', 'birthday', 'infantil', 'adultos'])) $iconName = 'bi-cake2-fill';
elseif (in_array($code, ['graduacion', 'graduaciones', 'egresados'])) $iconName = 'bi-mortarboard-fill';
elseif (in_array($code, ['bautismo', 'bautismos'])) $iconName = 'bi-droplet-fill';
@endphp
{{-- Add Alpine dynamic class binding for 'selected-card' --}}
{{-- Icon color logic is now in CSS: .selected-card .category-icon becomes #FFC107, otherwise white (except hardcoded Quince gold removed to let CSS handle) --}}
{{-- Actually, for non-selected cards: Quince icon was originally gold. User wants "selected button to be black with white text and yellow icon". --}}
{{-- Let's stick to the user's specific request for the selected state. For non-selected, we keep original colors? --}}
{{-- Wait, "haz mas pequeños los botones... el boton seleccionado debe ser negro con texto blanco y el icono amarillo" --}}
{{-- The previous implementation had Quince icon as Gold by default. --}}
{{-- I will set default color to white for simplicity to match the others, but allow Quince to keep its distinctive look if needed? --}}
{{-- No, consistent behavior is better. All white when unselected (except maybe quince), yellow when selected. --}}
{{-- Let's make Quince icon gold by default too as it looks better on black bg? But if Quince bg is black and selected bg is black... same visual. --}}
{{-- I'll use text-white for all unselected icons to be safe, except Quince which was special. --}}
{{ $type['name'] }}
@endforeach