mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-10 16:25:47 +00:00

- enhance plugin card ui - refactor components to be more consistent - invert toggler label for better UX - edit view components regex
49 lines
1.4 KiB
PHP
49 lines
1.4 KiB
PHP
<?= $this->extend('_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= esc($podcast->title) ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
<?= esc($podcast->title) ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2">
|
|
<x-Charts.Pie title="<?= lang('Charts.by_player_weekly') ?>" dataUrl="<?= route_to(
|
|
'analytics-data',
|
|
$podcast->id,
|
|
'PodcastByPlayer',
|
|
'ByAppWeekly',
|
|
) ?>" />
|
|
<x-Charts.Pie title="<?= lang('Charts.by_service_weekly') ?>" dataUrl="<?= route_to(
|
|
'analytics-data',
|
|
$podcast->id,
|
|
'PodcastByService',
|
|
'ByServiceWeekly',
|
|
) ?>" />
|
|
<x-Charts.Pie title="<?= lang('Charts.by_device_weekly') ?>" dataUrl="<?= route_to(
|
|
'analytics-data',
|
|
$podcast->id,
|
|
'PodcastByPlayer',
|
|
'ByDeviceWeekly',
|
|
) ?>" />
|
|
<x-Charts.Pie title="<?= lang('Charts.by_os_weekly') ?>" dataUrl="<?= route_to(
|
|
'analytics-data',
|
|
$podcast->id,
|
|
'PodcastByPlayer',
|
|
'ByOsWeekly',
|
|
) ?>" />
|
|
<x-Charts.XY class="col-span-2" title="<?= lang('Charts.podcast_bots') ?>" dataUrl="<?= route_to(
|
|
'analytics-data',
|
|
$podcast->id,
|
|
'PodcastByPlayer',
|
|
'Bots',
|
|
) ?>" />
|
|
</div>
|
|
|
|
<?= service('vite')
|
|
->asset('js/charts.ts', 'js') ?>
|
|
<?= $this->endSection() ?>
|