@extends('layouts.admin') @section('title', 'Eventos') @section('content')
Eventos

Gestiona el calendario de eventos del colegio

Nuevo Evento
@include('partials.section-header-editor', ['section' => 'events', 'titleDefault' => 'Proximos Eventos', 'subtitleDefault' => ''])
@if ($events->isEmpty())
No hay eventos
Nuevo Evento
@else @foreach ($events as $event) @endforeach
Evento Fecha Ubicacion Estado Acciones
{{ $event->title }} @if($event->description)
{{ Str::limit($event->description, 50) }} @endif
{{ $event->event_date->format('d/m/Y') }} @if($event->event_time) {{ substr($event->event_time, 0, 5) }} @endif {{ $event->location ?: '-' }} @if ($event->active) Activo @else Inactivo @endif
@csrf @method('DELETE')
@endif
@if($events->hasPages()) @endif
@endsection