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') ?>
|
|
|
|
<?= 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(
|
2021-09-08 17:51:33 +02: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(
|
2021-09-08 17:51:33 +02: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')
|
|
|
|
->asset('js/charts.ts', 'js') ?>
|
2020-07-27 11:35:34 +02:00
|
|
|
<?= $this->endSection() ?>
|