66 lines
2.5 KiB
PHP
66 lines
2.5 KiB
PHP
@extends('layouts/full')
|
|
|
|
@section('title')
|
|
Regioagenda | {{$event->title}}
|
|
@endsection
|
|
|
|
|
|
@section('content')
|
|
@parent
|
|
<article class="article-content" itemscope itemtype="http://schema.org/Article">
|
|
<div class="article-header">
|
|
<div class="article-meta clearfix">
|
|
<span class="event-pubdate"
|
|
<span class="event-pubdate" data-short-date="{{Formatter::fullDate($event->starts, 'w d m y')}}, {{$event->starts->format("H:i")}}" datetime="{{$event->starts->format('c')}}">
|
|
{{Formatter::relativeDate($event->starts, 'W d m y?')}} @if($event->ends && $event->starts != $event->ends) t/m {{Formatter::relativeDate($event->ends, 'd m y?')}} @endif
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h1 class="article-title" itemprop="headline">{{$event->title}}</h1>
|
|
|
|
@if($event->images && count($event->images) > 0)
|
|
@if(!$event->images[0]->title) @php($event->images[0]->title = $event->title) @endif
|
|
<div class="mediabox">
|
|
<div class="big-images owl-carousel">
|
|
<div>
|
|
<div class="mediabox-image">
|
|
<img src="{{$event->images[0]->url}}" alt="{{strip_tags($event->images[0]->title)}}" title="{{strip_tags($event->images[0]->title)}}"/>
|
|
<span class="mediabox-image-title">{{$event->images[0]->title}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="thumbs owl-carousel">
|
|
@if(count($event->images) > 1) @foreach($event->images as $image)
|
|
<div>
|
|
<img src="{{$image->url}}" alt="{{strip_tags($image->title)}}" title="{{strip_tags($image->title)}}" itemprop="image"/>
|
|
</div>
|
|
@endforeach @endif
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
@endif
|
|
<p class="intro">
|
|
<span><b>{{$event->region}}</b> - </span> {!!$event->content!!}
|
|
</p>
|
|
|
|
@if($event->podcast)
|
|
<div class="left_content">
|
|
<h2>Fragment</h2>
|
|
<p>{{ Formatter::relativeDate($event->podcast->created) }} uitgezonden @if($event->podcast->program) in <a href="{{ url('radio/programma' . $event->podcast->program->url ) }}">{{ $event->podcast->program->name }}</a> @endif </p>
|
|
<p>
|
|
<audio controls>
|
|
<source src="{{ $url = url( $apiUrl . 'podcast/download/' . $event->podcast->url . "?auth=" . $event->podcast->auth )}}" type="audio/mpeg" />
|
|
</audio>
|
|
</p>
|
|
<p><a href="{{ url('/radio/gemist/fragment/' . $event->podcast->url) }}" class="btn btn-default">Meer over dit fragment</a></p>
|
|
</div>
|
|
@endif
|
|
@endsection
|
|
|