Yassine Doghri dfb7888aeb feat(plugins): add aside with plugin metadata next to plugin's readme
- enhance plugin card ui
- refactor components to be more consistent
- invert toggler label for better UX
- edit view components regex
2024-06-14 15:53:33 +00:00

28 lines
929 B
PHP

<?= $this->extend('_layout') ?>
<?= $this->section('title') ?>
<?= esc($podcast->title) ?>
<?= $this->endSection() ?>
<?= $this->section('pageTitle') ?>
<?= esc($podcast->title) ?>
<?= $this->endSection() ?>
<?= $this->section('headerRight') ?>
<?php
// @icon('pencil-fill')
// @icon('add-fill')
?>
<x-Button uri="<?= route_to('podcast-edit', $podcast->id) ?>" variant="secondary" class="[&>span]:hidden [&>span]:md:block py-3 md:py-2" iconLeft="pencil-fill"><?= lang('Podcast.edit') ?></x-Button>
<x-Button uri="<?= route_to('episode-create', $podcast->id) ?>" variant="primary" class="[&>span]:hidden [&>span]:md:block py-3 md:py-2" iconLeft="add-fill"><?= lang('Episode.create') ?></x-Button>
<?= $this->endSection() ?>
<?= $this->section('content') ?>
<?= view_cell('Modules\Admin\Controllers\PodcastController::latestEpisodes', [
'limit' => 5,
'podcastId' => $podcast->id,
]) ?>
<?= $this->endSection() ?>