31 lines
889 B
PHP
31 lines
889 B
PHP
<?php helper('html'); ?>
|
|
|
|
<?= $this->extend('admin/_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('Podcast.all_podcasts') ?> (<?= count($all_podcasts) ?>)
|
|
<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>
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<div class="flex flex-wrap">
|
|
<?php if ($all_podcasts): ?>
|
|
<?php foreach ($all_podcasts as $podcast): ?>
|
|
<?= view('admin/_partials/_podcast-card', [
|
|
'podcast' => $podcast,
|
|
]) ?>
|
|
<?php endforeach; ?>
|
|
<?php else: ?>
|
|
<p class="italic"><?= lang('Podcast.no_podcast') ?></p>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<?= $this->endSection()
|
|
?>
|