@php /** @var \Illuminate\Pagination\LengthAwarePaginator $eventos */ $searchTerm = $searchTerm ?? ''; $filterDate = $filterDate ?? null; $filterWeek = $filterWeek ?? null; $filterMonth = $filterMonth ?? null; $filterLabel = $filterLabel ?? null; $isFiltered = !empty($filterDate) || !empty($filterWeek) || !empty($filterMonth) || !empty($searchTerm); $today = now()->format('Y-m-d'); // "Esta semana" = Sunday of current week (dayOfWeek: 0=domingo, 6=sábado) $thisWeek = now()->subDays(now()->dayOfWeek)->format('Y-m-d'); // "Próximo mês" = YYYY-MM format $nextMonth = now()->addMonth()->format('Y-m'); @endphp @extends('v2-portal::app-layout', [ 'pageTitle' => 'Agenda de Eventos — ' . config('app.name'), 'pageDescription' => 'Confira a agenda de eventos, cursos e programações.', 'gtag' => ['page_context' => 'agenda'], 'schemas' => [ [ '@context' => 'https://schema.org', '@type' => 'CollectionPage', 'name' => 'Agenda de Eventos', 'description' => 'Confira a agenda de eventos, cursos e programações.', 'url' => route('v2.agenda.portal.index', [], false) ] ], 'fullWidthMain' => true, 'showHeader' => false, 'showMainHeader' => false, 'showMainFooter' => false, 'showFooter' => false, 'showAccessibilityBar' => false, 'showMainLeftArea' => false, 'showMainRightArea' => false, ]) @section('main-section-area') {{-- HERO BREADCRUMB --}} {{-- SEARCH + FILTER PILLS (identical to Noticias pattern) --}}
@if($isFiltered)
@if($filterLabel) {{ $filterLabel }} @endif Limpar filtro
@endif
{{-- EVENTS GRID --}}
@if($eventos->count() > 0)
@foreach($eventos as $evento)
@if($evento->getImageUrl()) @include('v2-service-media::components.picture', [ 'originalPath' => $evento->getRelationValue('image')->file_path, 'variants' => $evento->getImageVariants(), 'alt' => $evento->title, 'class' => 'img-fluid', 'lazy' => true, ]) @else {{ $evento->title }} @endif

{{ $evento->title }}

{{ $evento->event_date_start ? $evento->event_date_start->format('d/m/Y') : '' }} @if($evento->event_date_end && $evento->event_date_end->format('d/m/Y') !== $evento->event_date_start->format('d/m/Y')) @if($evento->event_date_start) – @endif{{ $evento->event_date_end->format('d/m/Y') }} @endif @if($evento->location)
{{ $evento->location }} @endif @if($evento->organizer)
{{ $evento->organizer }} @endif

Saiba mais
@endforeach
@if($eventos->hasPages())
{{ $eventos->appends(request()->except('page'))->links('v2-portal::partials.pagination') }}
@endif @else

Nenhum evento encontrado

@if($isFiltered) Limpar filtros @else

Em breve divulgaremos nossa agenda de eventos.

@endif
@endif
@endsection @push('head-styles') @endpush