28 lines
1.3 KiB
PHP
28 lines
1.3 KiB
PHP
<ul>
|
|
@foreach($podcasts as $podcast)
|
|
<?php $url = route('gemist.fragment') . $podcast->url; ?>
|
|
<li class="post">
|
|
<div class="post_content">
|
|
<h2><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
|
|
<?php /** @var boolean $showTime **/ $time = Formatter::relativeDate($podcast->created) . ($showTime ? ' om ' . $podcast->published->format('H:i') : ''); ?>
|
|
<span class="post_date"
|
|
title="{{$time}}">
|
|
<i class="fa-regular fa-clock"></i> {{$time}}
|
|
</span>
|
|
</div>
|
|
@if($showImage && $podcast->image)
|
|
<a href="{{$url}}" title="{{$podcast->title}}" class="fixed-height">
|
|
<img src='{{$imgBase . $podcast->image->url}}' alt='{{$podcast->image->title}}'>
|
|
</a>
|
|
@endif
|
|
</div>
|
|
</li>
|
|
|
|
@endforeach
|
|
</ul>
|