castopod/app/Views/admin/podcast/view.php
2020-12-23 14:11:38 +00:00

38 lines
883 B
PHP

<?= $this->extend('admin/_layout') ?>
<?= $this->section('title') ?>
<?= $podcast->title ?>
<?= $this->endSection() ?>
<?= $this->section('pageTitle') ?>
<?= $podcast->title ?>
<?= location_link(
$podcast->location_name,
$podcast->location_geo,
$podcast->location_osmid,
'ml-4'
) ?>
<?= $this->endSection() ?>
<?= $this->section('headerRight') ?>
<?= button(
lang('Podcast.edit'),
route_to('podcast-edit', $podcast->id),
['variant' => 'secondary', 'iconLeft' => 'edit'],
['class' => 'mr-2']
) ?>
<?= button(lang('Episode.create'), route_to('episode-create', $podcast->id), [
'variant' => 'primary',
'iconLeft' => 'add',
]) ?>
<?= $this->endSection() ?>
<?= $this->section('content') ?>
<?= view_cell('\App\Controllers\Admin\Podcast::latestEpisodes', [
'limit' => 5,
'podcast_id' => $podcast->id,
]) ?>
<?= $this->endSection() ?>