@extends('layouts.app') @section('title', $event->titulo) @push('head') @endpush @section('content') @php // Helper para resolver URLs públicas desde BD: // Acepta 'storage/event_images/...', 'event_images/...', o '/storage/event_images/...' $pubUrl = function (?string $p) { if (empty($p)) return null; $p = ltrim($p, '/'); if (strpos($p, 'storage/') !== 0) $p = 'storage/' . $p; return asset($p); }; // Fondo $bgStyle = $event->bg_color ? "--bg-fallback: {$event->bg_color};" : ''; $wrapperStyle = $bgStyle; if (!empty($event->bg_image_path)) { $bgUrl = $pubUrl($event->bg_image_path); if ($bgUrl) $wrapperStyle .= "background: url('{$bgUrl}') center/cover no-repeat fixed;"; } elseif (!empty($event->bg_color)) { $wrapperStyle .= "background: var(--bg-fallback);"; } @endphp
Aún no hay imágenes subidas para este evento.