2020-07-10 12:20:25 +00:00
|
|
|
<?= $this->extend('admin/_layout') ?>
|
|
|
|
|
2020-07-16 10:08:23 +00:00
|
|
|
<?= $this->section('title') ?>
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= lang('Podcast.all_podcasts') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
2020-08-04 11:25:22 +00:00
|
|
|
<?= lang('Podcast.all_podcasts') ?> (<?= count($podcasts) ?>)
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('headerRight') ?>
|
|
|
|
<?= button(
|
|
|
|
lang('Podcast.create'),
|
|
|
|
route_to('podcast-create'),
|
2021-04-02 17:20:02 +00:00
|
|
|
['variant' => 'accent', 'iconLeft' => 'add'],
|
|
|
|
['class' => 'mr-2'],
|
2020-10-02 15:38:16 +00:00
|
|
|
) ?>
|
|
|
|
<?= button(lang('Podcast.import'), route_to('podcast-import'), [
|
|
|
|
'variant' => 'primary',
|
|
|
|
'iconLeft' => 'download',
|
|
|
|
]) ?>
|
2020-07-16 10:08:23 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
2020-07-10 12:20:25 +00:00
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
<div class="grid gap-4 grid-cols-podcasts">
|
2020-08-04 11:25:22 +00:00
|
|
|
<?php if (!empty($podcasts)): ?>
|
|
|
|
<?php foreach ($podcasts as $podcast): ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
<article class="h-full overflow-hidden bg-white border shadow rounded-xl">
|
2020-10-02 15:38:16 +00:00
|
|
|
<img
|
|
|
|
alt="<?= $podcast->title ?>"
|
|
|
|
src="<?= $podcast->image
|
2021-04-02 17:20:02 +00:00
|
|
|
->medium_url ?>" class="object-cover w-full h-48" />
|
|
|
|
<a href="<?= route_to(
|
|
|
|
'podcast-view',
|
|
|
|
$podcast->id,
|
|
|
|
) ?>" class="flex flex-col p-2 hover:underline">
|
|
|
|
<h2 class="font-semibold truncate"><?= $podcast->title ?></h2>
|
2020-10-02 15:38:16 +00:00
|
|
|
<p class="text-gray-600">@<?= $podcast->name ?></p>
|
2021-04-02 17:20:02 +00:00
|
|
|
</a>
|
2020-10-02 15:38:16 +00:00
|
|
|
<footer class="flex items-center justify-end p-2">
|
2021-04-02 17:20:02 +00:00
|
|
|
<a class="inline-flex p-2 mr-2 text-blue-700 bg-blue-100 rounded-full shadow-xs hover:bg-blue-200" href="<?= route_to(
|
2020-10-02 15:38:16 +00:00
|
|
|
'podcast-edit',
|
2021-04-02 17:20:02 +00:00
|
|
|
$podcast->id,
|
2020-10-02 15:38:16 +00:00
|
|
|
) ?>" data-toggle="tooltip" data-placement="bottom" title="<?= lang(
|
2021-04-02 17:20:02 +00:00
|
|
|
'Podcast.edit',
|
2020-10-02 15:38:16 +00:00
|
|
|
) ?>"><?= icon('edit') ?></a>
|
|
|
|
<a class="inline-flex p-2 text-gray-700 bg-gray-100 rounded-full shadow-xs hover:bg-gray-200" href="<?= route_to(
|
|
|
|
'podcast-view',
|
2021-04-02 17:20:02 +00:00
|
|
|
$podcast->id,
|
2020-10-02 15:38:16 +00:00
|
|
|
) ?>" data-toggle="tooltip" data-placement="bottom" title="<?= lang(
|
2021-04-02 17:20:02 +00:00
|
|
|
'Podcast.view',
|
2020-10-02 15:38:16 +00:00
|
|
|
) ?>"><?= icon('eye') ?></a>
|
|
|
|
</footer>
|
|
|
|
</article>
|
2020-07-10 12:20:25 +00:00
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php else: ?>
|
2020-07-16 10:08:23 +00:00
|
|
|
<p class="italic"><?= lang('Podcast.no_podcast') ?></p>
|
2020-07-10 12:20:25 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
|
2020-10-22 17:41:59 +00:00
|
|
|
<?= $this->endSection() ?>
|