@extends('layouts.app') @section('title', 'Editar evento') @push('head') @endpush @section('content')

Editar: {{ $event->titulo }}

@if (Route::has('events.index')) Mis eventos @endif @if (Route::has('preview.form')) Ver preview @endif
@if (session('ok'))
{{ session('ok') }}
@endif {{-- ===================== FORM PRINCIPAL ===================== --}}
@csrf @method('PUT')
@error('titulo')
{{ $message }}
@enderror
is_preview_enabled) ? 'checked' : '' }}>
guest_upload_enabled) ? 'checked' : '' }}>
@error('preview_code')
{{ $message }}
@enderror Se guarda en hash.
{{-- URL Preview --}}
Comparte este enlace; los invitados deberán ingresar el código.
{{-- ===================== CÓDIGO QR ===================== --}}
Escanea este código para abrir la página de preview, o compártelo con tus invitados.
{{-- ===================== FIN CÓDIGO QR ===================== --}}

{{-- Imagen de fondo --}}
@error('bg_image')
{{ $message }}
@enderror
@if ($event->bg_image_path) @endif
{{-- Form eliminar fondo --}} @if ($event->bg_image_path)
@csrf @method('PUT')
@endif {{-- Form eliminar evento --}}
@csrf @method('DELETE')
{{-- ===================== SUBIR IMÁGENES ===================== --}}

Subir imágenes

@csrf
Los invitados podrán subir desde /p/{{ $event->slug }}.
{{-- ===================== GALERÍA ===================== --}}

Imágenes del evento

@if ($event->images->isEmpty())

Aún no hay imágenes.

@else @php $pubUrl = fn($p)=>asset(str_starts_with($p,'storage/')?$p:'storage/'.$p); @endphp
@foreach($event->images->sortBy(['order','id']) as $img)
{{ $img->original_name }}
@csrf @method('DELETE')
@endforeach
@endif
@endsection @push('scripts') {{-- LIBRERÍA QR (QRIOUS) --}} @endpush