2020-07-10 12:20:25 +00:00
|
|
|
<?= $this->extend('admin/_layout') ?>
|
|
|
|
|
2020-07-16 10:08:23 +00:00
|
|
|
<?= $this->section('title') ?>
|
2020-08-04 11:25:22 +00:00
|
|
|
<?= lang('Podcast.all_podcasts') ?> (<?= count($podcasts) ?>)
|
2020-07-27 09:35:34 +00:00
|
|
|
<a class="inline-flex items-center px-2 py-1 mb-2 ml-4 text-sm text-white bg-green-500 rounded shadow-xs outline-none hover:bg-green-600 focus:shadow-outline" href="<?= route_to(
|
|
|
|
'podcast_create'
|
|
|
|
) ?>">
|
|
|
|
<?= icon('add', 'mr-2') ?>
|
|
|
|
<?= lang('Podcast.create') ?></a>
|
2020-07-16 10:08:23 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
2020-07-10 12:20:25 +00:00
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
|
|
|
<div class="flex flex-wrap">
|
2020-08-04 11:25:22 +00:00
|
|
|
<?php if (!empty($podcasts)): ?>
|
|
|
|
<?php foreach ($podcasts as $podcast): ?>
|
2020-07-27 09:35:34 +00:00
|
|
|
<?= view('admin/_partials/_podcast-card', [
|
|
|
|
'podcast' => $podcast,
|
|
|
|
]) ?>
|
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>
|
|
|
|
|
|
|
|
<?= $this->endSection()
|
|
|
|
?>
|