@extends('templates.layout') @section('title', 'Eventos') @section('description', '') @section('content')
{{-- Banner --}} @include('partials.common-banner', [ 'image' => asset('../img/banner-top.jpg'), 'title' => 'EVENTOS' ]) {{-- End: Banner --}} {{-- Block --}}

Eventos futuros

@foreach($upcomingEvents as $i => $event)
@include('partials.common-card', [ 'class' => 'c-common-card--primary', 'data' => [ 'day' => $event->event_at->format("d"), 'month' => substr($event->event_at->locale("pt-BR")->translatedFormat("F"), 0, 3), ], 'exclusive' => $event->is_exclusive ? true : false, 'img' => $event->getImage(), 'title' => $event->title, 'type' => [ 'title' => $event->is_presencial ? 'Presencial' : 'Online', 'link' => $event->is_presencial ? $event->forms : $event->meet, ], 'time' => $event->event_at->format("H:i") ])
@endforeach
{{-- End: Block --}} {{-- Block --}}

Eventos passados

@foreach($pastEvents as $i => $event)
@include('partials.common-card', [ 'class' => 'c-common-card--primary', 'data' => [ 'day' => $event->event_at->format("d"), 'month' => substr($event->event_at->locale("pt-BR")->translatedFormat("F"), 0, 3), ], 'exclusive' => $event->is_exclusive ? true : false, 'img' => $event->getImage(), 'title' => $event->title ])
@endforeach
{{-- End: Block --}} {{-- Block --}} {{--

Downloads

@foreach($publications as $i => $publication)
@include('partials.common-card', [ 'class' => 'c-common-card--primary', 'img' => $publication->getImage(), 'title' => $publication->title, 'download' => [ 'title' => 'Baixar Cartilha', 'file-id' => $publication->id ], ])
@endforeach
--}} {{-- End: Block --}}
@stop