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