@extends('layouts/sidebar')
@section('title')
Regioagenda
@endsection
@section('page_class')
news_post post_container breadcrumb_no_border
@endsection
@section('container_class')
grey_background
@endsection
@section('content_class')
@endsection
@section('breadcrumb')
Er zijn geen items in de regioagenda. Iets te melden? Mail het naar {{Html::mailto("info@nhgooi.nl")}}
.
@endsection
@else
@section('content')
@parent
@php($tabs = [
[
'id' => 'tab_previous',
'start' => new DateTime('1-1-1990'),
'end' => new DateTime('sunday previous week'),
],
[
'id' => 'tab_current_week',
'start' => new DateTime('monday this week'),
'end' => new DateTime('sunday this week'),
],
[
'id' => 'tab_everything',
'start' => new DateTime('1-1-1990'),
'end' => new DateTime('31-12-3000'),
],
[
'id' => 'tab_next',
'start' => new DateTime('monday next week'),
'end' => new DateTime('31-12-3000'),
]
])
@foreach($tabs as $tab)
@php($count = 0)
@foreach($events as $event)
@if($event->starts >= $tab['start'] && $event->ends <= $tab['end'])
@php($count++)
$event->id, 'title' => $event->title]); ?>
{{Formatter::relativeDate($event->starts, 'W d m y?')}}
@if($event->ends && $event->starts != $event->ends)
t/m {{strtolower(Formatter::relativeDate($event->ends, 'W d m y?'))}}
@endif
{!!Formatter::excerpt($event->content, 150)!!}
Lees verder
@endif
@endforeach
@if($count == 0)
Er zijn geen items gevonden. Iets te melden? Mail het naar info@nhgooi.nl.
@endif
@endforeach
@endsection
@endif