File: D:/HostingSpaces/netwerkbrabant/netwerkbrabant.nl/resources/views/site/pages/events/index.blade.php
@extends('site.master')
@section('title', $page->translation->meta_title)
@section('meta_description', $page->translation->meta_description)
@section('content')
@include('site.partials.events.switcher')
@if(isset($page->translation->description))
<section class="dynamic-content">
<div class="grid-row">
@include('site.partials.dynamic.dynamicBlocks', [ 'dynamicContent' => $page->translation->description ])
</div>
</section>
@endif
<section class="highlighted-events-row">
<div class="grid-row">
@include('site.elements.labelTitle', [
'tag' => 'h2',
'name' => __('site/events.soon'),
'icon' => 'events'
])
@if($highlightedEvents->count() != 0 )
<div class="highlighted-events">
@foreach($highlightedEvents as $event)
@include('site.partials.events.event', ['eventModel' => $event])
@endforeach
</div>
@else
<p class="no-events">
@lang('site/'.$page->code_name.'.noEvents')
</p>
@endif
</div>
</section>
<div class="events-row">
<div class="grid-row">
@include('site.elements.labelTitle', [
'tag' => 'h2',
'name' => __('site/events.planAhead'),
'icon' => 'events'
])
{{-- Link to networkbreakfast / networkdinner (/ events as fallback ) --}}
@if($page->code_name === 'networkdinner')
@include('site.elements.filterMenu', ['modelIndexRoute' => $links->networkdinner->route])
@elseif($page->code_name === 'networkbreakfast')
@include('site.elements.filterMenu', ['modelIndexRoute' => $links->networkbreakfast->route])
@else
@include('site.elements.filterMenu', ['modelIndexRoute' => $links->events->route])
@endif
<section class="overview">
@include('site.partials.events.overview')
</section>
<aside class="side-content">
@include('site.partials.followUsBlock', ['titleOverwrite' => trans('site/events.stayUpToDate'), 'reverse' => true])
@include('site.partials.tryOut')
</aside>
</div>
</div>
@endsection