= $this->extend('admin/_layout') ?> = $this->section('title') ?> = lang('Episode.all_podcast_episodes') ?> = $this->endSection() ?> = $this->section('pageTitle') ?> = lang('Episode.all_podcast_episodes') ?> (= $pager->getDetails()['total'] ?>) = $this->endSection() ?> = $this->section('headerRight') ?> = button(lang('Episode.create'), route_to('episode-create', $podcast->id), [ 'variant' => 'accent', 'iconLeft' => 'add', ]) ?> = $this->endSection() ?> = $this->section('content') ?>
= lang('Common.pageInfo', [ 'currentPage' => $pager->getDetails()['currentPage'], 'pageCount' => $pager->getDetails()['pageCount'], ]) ?>
= data_table( [ [ 'header' => lang('Episode.list.episode'), 'cell' => function ($episode, $podcast) { return ''; }, ], [ 'header' => lang('Episode.list.visibility'), 'cell' => function ($episode): string { return publication_pill( $episode->published_at, $episode->publication_status, ); }, ], [ 'header' => lang('Episode.list.comments'), 'cell' => function ($episode): int { return count($episode->comments); }, ], [ 'header' => lang('Episode.list.actions'), 'cell' => function ($episode, $podcast) { return '' . '' . ''; }, ], ], $episodes, 'mb-6', $podcast ) ?> = $pager->links() ?> = $this->endSection() ?>