39 lines
1.9 KiB
PHP
39 lines
1.9 KiB
PHP
<div>
|
|
@foreach($podcasts as $podcast)
|
|
<?php
|
|
$url = route('gemist.fragment') . $podcast->url;
|
|
$popoutUrl = route('luister.podcast') . $podcast->url . '?auth=' . $podcast->auth;
|
|
?>
|
|
<div class="box full-width featured">
|
|
<div class="row">
|
|
<div class="col-12 col-md-6">
|
|
<a href="{{$url}}" title="{{$podcast->title}}">
|
|
<img src="{{$podcast->image && $podcast->image->url ? $imgBase . $podcast->image->url : '/images/noimage.png'}}"/>
|
|
</a>
|
|
</div>
|
|
<div class="col-12 col-md-6">
|
|
<h2 class="post_title"><a href="{{$url}}" title="{{$podcast->title}}">{!!$podcast->titleWithoutProgram()!!}</a></h2>
|
|
<div class="sub_title">
|
|
@if ($podcast->program)
|
|
<a class="program_name" href="{{ route('programma') . $podcast->program->url }}"
|
|
title="{{$podcast->program->name}}">{{$podcast->program->name}}</a>
|
|
@endif
|
|
<span class="post_date" title="{{Formatter::relativeDate($podcast->created)}}">
|
|
<i class="fa-regular fa-clock"></i> {{Formatter::relativeDate($podcast->created)}}
|
|
</span>
|
|
</div>
|
|
<p class="clipText clipText-7" title="{{strip_tags($podcast->content)}}">
|
|
{!!$podcast->content!!}
|
|
</p>
|
|
<a class="action_button btn player" href="{{$popoutUrl}}">
|
|
<span class="fa fa-external-link-alt"></span>
|
|
<span>Luister in nieuw venster</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div><!--/.row-->
|