2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2020-07-27 09:35:34 +00:00
|
|
|
|
2020-08-05 16:10:39 +00:00
|
|
|
<?= $this->section('title') ?>
|
2022-03-04 14:33:48 +00:00
|
|
|
<?= esc($episode->title) ?>
|
2020-08-05 16:10:39 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->section('pageTitle') ?>
|
2022-03-04 14:33:48 +00:00
|
|
|
<?= esc($episode->title) ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('headerLeft') ?>
|
|
|
|
<?= publication_pill(
|
|
|
|
$episode->published_at,
|
|
|
|
$episode->publication_status,
|
|
|
|
'text-sm ml-2 align-middle',
|
|
|
|
) ?>
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
<?= $this->section('headerRight') ?>
|
2022-10-14 14:37:03 +00:00
|
|
|
<?php if ($episode->publication_status === 'published'): ?>
|
2024-04-26 17:57:25 +00:00
|
|
|
<?php // @icon('history-fill')?>
|
2022-10-14 14:37:03 +00:00
|
|
|
<IconButton
|
|
|
|
uri="<?= route_to('episode-publish_date_edit', $podcast->id, $episode->id) ?>"
|
2024-04-26 17:57:25 +00:00
|
|
|
glyph="history-fill"
|
2022-10-14 14:37:03 +00:00
|
|
|
variant="secondary"
|
|
|
|
glyphClass="text-xl"
|
|
|
|
><?= lang('Episode.publish_date_edit') ?></IconButton>
|
|
|
|
<?php endif; ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
<?= publication_button(
|
|
|
|
$podcast->id,
|
|
|
|
$episode->id,
|
|
|
|
$episode->publication_status,
|
|
|
|
) ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
2020-07-27 09:35:34 +00:00
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-09-07 15:43:09 +00:00
|
|
|
<div class="mb-12">
|
2021-12-17 17:14:37 +00:00
|
|
|
<?= audio_player($episode->audio->file_url, $episode->audio->file_mimetype) ?>
|
2020-10-02 15:38:16 +00:00
|
|
|
</div>
|
2020-07-27 09:35:34 +00:00
|
|
|
|
2021-09-07 15:43:09 +00:00
|
|
|
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2">
|
|
|
|
<Charts.XY title="<?= lang('Charts.episode_by_day') ?>" dataUrl="<?= route_to(
|
2023-02-22 16:29:45 +00:00
|
|
|
'analytics-filtered-data',
|
|
|
|
$podcast->id,
|
|
|
|
'PodcastByEpisode',
|
|
|
|
'ByDay',
|
|
|
|
$episode->id,
|
|
|
|
) ?>"/>
|
2021-09-07 15:43:09 +00:00
|
|
|
|
|
|
|
<Charts.XY title="<?= lang('Charts.episode_by_month') ?>" dataUrl="<?= route_to(
|
2023-02-22 16:29:45 +00:00
|
|
|
'analytics-filtered-data',
|
|
|
|
$podcast->id,
|
|
|
|
'PodcastByEpisode',
|
|
|
|
'ByMonth',
|
|
|
|
$episode->id,
|
|
|
|
) ?>"/>
|
2021-09-07 15:43:09 +00:00
|
|
|
</div>
|
2020-10-14 10:38:48 +00:00
|
|
|
|
|
|
|
|
2021-09-08 15:51:33 +00:00
|
|
|
<?= service('vite')
|
2023-08-21 16:13:03 +00:00
|
|
|
->asset('js/charts.ts', 'js') ?>
|
2020-07-27 09:35:34 +00:00
|
|
|
<?= $this->endSection() ?>
|