Nieuwe API aanpassingen
This commit is contained in:
@@ -37,40 +37,9 @@
|
||||
@section('content')
|
||||
@parent
|
||||
<div data-tabs class="page_body">
|
||||
<div class="tabs">
|
||||
<h4 data-tab-content-id="tab_previous" class="box_header small flex-grow-1"><span>Eerder</span></h4>
|
||||
<h4 data-tab-content-id="tab_current_week" class="box_header small flex-grow-1 active"><span>Komende week</span></h4>
|
||||
<h4 data-tab-content-id="tab_everything" class="box_header small flex-grow-1"><span>Toon alles</span></h4>
|
||||
<h4 data-tab-content-id="tab_next" class="box_header small"><span>Later</span></h4>
|
||||
</div>
|
||||
|
||||
@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)
|
||||
<div style="padding: 0" class="tab_content{{$tab['id'] == 'tab_current_week' ? ' active' : ''}}" id="{{$tab['id']}}">
|
||||
<div style="padding: 0" class="tab_content active" id="agenda">
|
||||
@php($count = 0)
|
||||
@foreach($events as $event)
|
||||
@if($event->starts >= $tab['start'] && $event->ends <= $tab['end'])
|
||||
@php($count++)
|
||||
<?php $url = route('agenda.details', ['id' => $event->id, 'title' => $event->title]); ?>
|
||||
<div class="box featured">
|
||||
@@ -83,8 +52,10 @@
|
||||
<div class="col-12 col-md-6">
|
||||
<h2 class="post_title"><a href="{{$url}}" title="{{$event->title}}">{!!$event->title!!}</a></h2>
|
||||
<div class="sub_title" style="flex-wrap: wrap">
|
||||
<ul class="post_tags" style="width: 100%; margin: 0 0 8px 0;height: 25px;">
|
||||
<li><a style="padding: 3px 8px 3px" title="{{$event->region}}">{{$event->region}}</a></li>
|
||||
<ul class="post_tags" style="width: 100%; margin: 0 0 8px 0;height: 25px;">
|
||||
@foreach($event->tags as $tag)
|
||||
<li><a style="padding: 3px 8px 3px" title="{{$tag->title}}">{{$tag->title}}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<span class="post_date" style="line-height: 1.17; height: 14px;" title="{{Formatter::relativeDate($event->starts, 'W d m y?')}}">
|
||||
<i class="fa-regular fa-clock"></i> {{Formatter::relativeDate($event->starts, 'W d m y?')}}
|
||||
@@ -99,14 +70,12 @@
|
||||
<a class="btn fit_content" href="{{$url}}">Lees verder</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
@if($count == 0)
|
||||
<p>Er zijn geen items gevonden. Iets te melden? Mail het naar <a href="mailto:info@nhgooi.nl">info@nhgooi.nl</a>.</p>
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@endif
|
||||
|
||||
@@ -61,6 +61,7 @@
|
||||
</a>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
@if(count($jobs))
|
||||
<h2 class="first">Wie zoeken wij?</h2>
|
||||
<ul>
|
||||
@foreach($jobs as $job)
|
||||
@@ -73,7 +74,8 @@
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
<div style="margin: 1em; border-bottom: solid 1px #333;"></div>
|
||||
<h2>Niet wat je zoekt?</h2>
|
||||
<h2>Niet wat je zoekt?</h2>
|
||||
@endif
|
||||
<a class="btn" style="width: fit-content" href="mailto:meebouwen@nhgooi.nl?subject=Open sollicitatie"
|
||||
title="Mail direct je reactie op deze vacature.">
|
||||
<span>Open sollicitatie</span>
|
||||
|
||||
Reference in New Issue
Block a user