Agregá los lugares de tu evento

@php $itineraryCount = 0; // Contar cuántos items de itinerario hay if (isset($invitation) && $invitation->schedule && $invitation->schedule->count() > 0) { $itineraryCount = $invitation->schedule->count(); } else { // Si no hay eventos, buscar en el form foreach($form as $key => $value) { if (preg_match('/^eventName(\d+)$/', $key, $matches)) { $itineraryCount = max($itineraryCount, (int)$matches[1] + 1); } } } if ($itineraryCount === 0) $itineraryCount = 1; // Al menos uno por defecto @endphp @for($i = 0; $i < $itineraryCount; $i++)
Lugar {{ $i + 1 }}
@if($i > 0) @endif
{{-- Previsualización de imagen existente --}} @if(!empty($form['locationPhoto'.$i]) && is_string($form['locationPhoto'.$i]))
Foto del lugar
@else @endif {{-- Barra de progreso --}} Imagen que se mostrará para este lugar en la invitación
@endfor