@php /** @var \Illuminate\Pagination\LengthAwarePaginator $eventos */ $pageTitle = 'Agenda de Eventos'; $filter = request()->input('filter', ''); $searchTerm = request()->input('search', ''); @endphp @extends('v2-cms::layouts.app', [ 'title' => $pageTitle, ]) @section('page-breadcrumbs') @include('v2-cms::partials.breadcrumb', ['items' => [ ['label' => 'Publicações'], ['label' => 'Agenda'], ]]) @endsection @section('page-actions') @include('v2-cms::partials.action-create', [ 'route' => route('v2.agenda.cms.create'), 'label' => 'Novo Evento' ]) @endsection @section('content')

{{ $eventos->total() }} registro(s) encontrados

@component('v2-cms::partials.filter-card', [ 'searchPlaceholder' => 'Buscar por título ou descrição...', 'searchValue' => $searchTerm, 'action' => route('v2.agenda.cms.index'), 'showDateRange' => false, ])
@endcomponent @if($eventos->count() > 0)
@foreach($eventos as $evento) @endforeach
Imagem Título Data Local Status Ações
@if($evento->getImageUrl()) {{ $evento->title }} @else
@endif
{{ $evento->title }} {{ $evento->event_date_start->format('d/m/Y H:i') }} @if($evento->event_date_end)
até {{ $evento->event_date_end->format('d/m/Y H:i') }} @endif
{{ $evento->location ?: '-' }} @if($evento->published_at) Publicado @else Rascunho @endif
{{ csrf_field() }} {{ method_field('DELETE') }}
@if($eventos->hasPages())
{{ $eventos->appends(request()->except('page'))->links('v2-cms::partials.pagination') }}
@endif @else

Nenhum evento encontrado

@if(!empty($searchTerm) || !empty($filter))

Tente ajustar os filtros ou limpar a busca.

Limpar Filtros @else

Comece criando o primeiro evento da agenda.

Criar Primeiro Evento @endif
@endif @endsection