@assets @endassets @php $backgroundImage = $myInvites->count() == 0 ? asset('img/fondo-black.svg') : asset('img/fongo.svg'); @endphp
{{-- Banner Carousel --}}

¿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
@if($this->templatesComputed)

.

{{-- Ver todo --}}
@foreach ($this->templatesComputed as $template) @php $templateThumbnailUrls = collect(); if (!empty($template->img_preview)) { $templateThumbnailUrls->push(Storage::url($template->img_preview)); } $extraThumbs = $template->images ->pluck('thumbnail_path') ->filter() ->map(function ($path) { return Storage::url($path); }); $templateThumbnailUrls = $templateThumbnailUrls->merge($extraThumbs)->unique()->values(); @endphp
@if($templateThumbnailUrls->count() > 1) @endif
@php $colorThemes = $template->themes->filter(function ($theme) { return $theme->type === 'colors'; })->shuffle()->values(); $firstTheme = $colorThemes->first(); $firstThemeColors = $firstTheme ? $firstTheme->values->pluck('value')->filter(function ($value) { return strpos($value, '#') === 0; })->values()->take(4) : collect(); @endphp
Modelo {{$template['name']}}
@if($colorThemes->count() > 0)
Colores disponibles →
@endif
@endforeach
@foreach ($this->templatesComputed as $template) @php $templateThumbnailUrls = collect(); if (!empty($template->img_preview)) { $templateThumbnailUrls->push(Storage::url($template->img_preview)); } $extraThumbs = $template->images ->pluck('thumbnail_path') ->filter() ->map(function ($path) { return Storage::url($path); }); $templateThumbnailUrls = $templateThumbnailUrls->merge($extraThumbs)->unique()->values(); @endphp
@if($templateThumbnailUrls->count() > 1) @endif
@php $colorThemes = $template->themes->filter(function ($theme) { return $theme->type === 'colors'; })->shuffle()->values(); $firstTheme = $colorThemes->first(); $firstThemeColors = $firstTheme ? $firstTheme->values->pluck('value')->filter(function ($value) { return strpos($value, '#') === 0; })->values()->take(4) : collect(); @endphp
Modelo {{$template['name']}}
@if($colorThemes->count() > 0)
Colores disponibles →
@endif
@endforeach
{{-- Ver todo --}}
@endif

Más valoradas.

@foreach ($mostValuedTemplates as $valuedTemplate)
@if(!empty($valuedTemplate['img_preview'])) ... @endif

{{$valuedTemplate['rating']}}

{{$valuedTemplate['name']}}

{{$valuedTemplate->type->name}}

@endforeach

Mis invitaciones.

Ver todas mis invitaciones
@forelse ($myInvites as $invitation) @empty

Aún no tienes una invitación creada

@endforelse
@script @endscript