{{-- Colores del skin --}} {{-- Header Optimizado para Banner HomePage --}} @if (session('success'))
{!! theme()->getSvgIcon('icons/duotune/art/art005.svg', 'svg-icon svg-icon-2tx svg-icon-success me-3 me-md-4') !!}

{{ __('¡Acción exitosa!') }}

{{ session('success') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- Modo del Hero --}}

{{ __('Fondo del Hero') }}

{{ __('Elige cómo se mostrará el fondo de la sección principal del sitio') }}

@csrf {{-- Selector de modo --}}
{{-- Opción: Imágenes --}}
{{-- Opción: Video --}}
{{-- Panel de configuración de video (visible solo en modo video) --}}
{{ __('Archivo de video') }}
@if($heroVideoEnabled && $heroVideoPath) {{-- Preview del video actual --}}
{{ __('Video actual') }}
@endif {{-- Upload de nuevo video --}} {{-- Input de file FUERA del dropzone para evitar bubbling del click --}}
{{ __('Arrastra tu video aquí o haz clic para seleccionar') }}
{{ __('Formatos: MP4, MOV, WEBM · Máximo 100MB') }}
@error('video_file')
{{ $message }}
@enderror @if($heroVideoEnabled && $heroVideoPath)
{{ __('Si no seleccionas un archivo nuevo, se mantendrá el video actual.') }}
@endif
{{-- Footer con botón guardar --}}
{{-- Form de eliminación de video: FUERA del heroModeForm para evitar nesting --}} @if($heroVideoEnabled && $heroVideoPath)
@csrf
@endif

{{ __('Banner Principal') }}

{{ __('Imágenes del carrusel de la página de inicio') }}

@csrf
{{ __('Formatos: JPEG, PNG, JPG, GIF, SVG. Máx. 2MB por imagen.') }} @error('images')
{{ $message }}
@enderror @error('images.*')
{{ $message }}
@enderror

{{ __('Imágenes del carrusel') }}

{{ __('Orden y edición de las imágenes del banner principal') }}

@if($images->count() > 0)
@foreach ($images as $image)
@if($image->image_path) @php $imageUrl = $image->image_path; $isFullUrl = filter_var($imageUrl, FILTER_VALIDATE_URL); if (!$isFullUrl) { $imageUrl = asset($imageUrl); } @endphp
{{ $image->name }}
@else
{{ __('Sin imagen') }}
@endif
{{ $image->name ?? __('Sin Nombre') }}
@if($image->title)
{{ $image->title }}
@endif @if($image->subtitle)
{{ $image->subtitle }}
@endif
{{ __('Orden:') }} {{ $image->order }} {{ __('ID:') }} {{ $image->id }}
{{ __('Editar') }}
@endforeach
@foreach ($images as $image) @endforeach
{{ __('Imagen') }} {{ __('Nombre') }} {{ __('Orden') }} {{ __('Acciones') }}
@if($image->image_path) @php $imageUrl = $image->image_path; $isFullUrl = filter_var($imageUrl, FILTER_VALIDATE_URL); if (!$isFullUrl) { $imageUrl = asset($imageUrl); } @endphp
{{ $image->name }}
@else
{{ __('Sin imagen') }}
@endif
{{ $image->name ?? __('Sin Nombre') }}
@if($image->title)
{{ $image->title }}
@endif @if($image->subtitle) {{ $image->subtitle }} @else {{ __('ID: ') }}{{ $image->id }} @endif
{{ $image->order }}
{{ __('Editar') }}
@else
{{ __('No hay imágenes en el carrusel') }}

{{ __('Sube algunas imágenes para comenzar') }}

@endif
{{-- /carouselSectionWrapper --}} @push('scripts') @endpush @push('styles') @endpush