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') ?>
|
|
|
|
<?= $episode->title ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->section('pageTitle') ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
<?= $episode->title ?>
|
|
|
|
<?= $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') ?>
|
|
|
|
<?= 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(
|
2021-09-08 15:51:33 +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(
|
2021-09-08 15:51:33 +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')
|
|
|
|
->asset('js/charts.ts', 'js') ?>
|
2020-07-27 09:35:34 +00:00
|
|
|
<?= $this->endSection() ?>
|