@extends('fragments.fullTemplate') @section('titulo') Banners Portal de Clientes @endsection @section('contenido')
@if(session()->has('success')) @endif @if(session()->has('error')) @endif @if(count($errors) > 0) @endif
Utilice el botón con el ícono de estrella para destacar un banner. El sistema permite un máximo de 5 banners destacados de forma simultánea.
@forelse($banners as $banner) @empty @endforelse
# Descripción Inicio Fin Estado Destacado Acciones
{{ $banner->id }} {{ $banner->description ?: 'Sin descripción' }} {{ $banner->start_date ? $banner->start_date->format('d-m-Y') : '-' }} {{ $banner->end_date ? $banner->end_date->format('d-m-Y') : '-' }} @if($banner->active) Activo @else Inactivo @endif @if($banner->order >= 1 && $banner->order <= 5) #{{ $banner->order }} @else No @endif
@if($banner->order >= 1 && $banner->order <= 5)
{{ csrf_field() }}
@elseif($featuredCount < 5)
{{ csrf_field() }}
@else @endif
{{ csrf_field() }}
No hay banners.
{{ $banners->links() }}
@foreach($banners as $banner) @php $bannerImageUrl = $banner->banner_image_url; @endphp @endforeach {{-- Este handler compartido procesa exclusivamente creación y edición sin afectar las demás acciones. --}} @endsection