extend('_layout') ?> section('title') ?> endSection() ?> section('pageTitle') ?> endSection() ?> section('headerRight') ?> endSection() ?> section('content') ?>

$pager->getDetails()['total'], ]) ?>
$pager->getDetails()['currentPage'], 'pageCount' => $pager->getDetails()['pageCount'], ]) ?>

lang('Episode.list.episode'), 'cell' => function ($episode, $podcast) { $premiumBadge = ''; if ($episode->is_premium) { $premiumBadge = ''; } return '
' . '
' . '' . $premiumBadge . '' . esc($episode->title) . '' . '
' . '' . '

' . episode_numbering( $episode->number, $episode->season_number, 'text-xs font-semibold text-skin-muted !no-underline border px-1 border-gray-500', true, ) . '' . esc($episode->title) . '' . '

' . '

' . $episode->description . '

' . '
' . '
'; }, ], [ 'header' => lang('Episode.list.visibility'), 'cell' => function ($episode): string { return publication_pill( $episode->published_at, $episode->publication_status, 'text-sm' ); }, ], [ 'header' => lang('Episode.list.downloads'), 'cell' => function ($episode): string { return downloads_abbr($episode->downloads); }, ], [ 'header' => lang('Episode.list.comments'), 'cell' => function ($episode): int { return $episode->comments_count; }, ], [ 'header' => lang('Episode.list.actions'), 'cell' => function ($episode, $podcast) { $items = [ [ 'type' => 'link', 'title' => lang('Episode.go_to_page'), 'uri' => route_to('episode', esc($podcast->handle), esc($episode->slug)), ], [ 'type' => 'link', 'title' => lang('Episode.edit'), 'uri' => route_to('episode-edit', $podcast->id, $episode->id), ], [ 'type' => 'link', 'title' => lang('Episode.embed.title'), 'uri' => route_to('embed-add', $podcast->id, $episode->id), ], [ 'type' => 'link', 'title' => lang('Person.persons'), 'uri' => route_to('episode-persons-manage', $podcast->id, $episode->id), ], [ 'type' => 'link', 'title' => lang('VideoClip.list.title'), 'uri' => route_to('video-clips-list', $episode->podcast->id, $episode->id), ], [ 'type' => 'link', 'title' => lang('Soundbite.list.title'), 'uri' => route_to('soundbites-list', $podcast->id, $episode->id), ], [ 'type' => 'separator', ], ]; if ($episode->published_at === null) { $items[] = [ 'type' => 'link', 'title' => lang('Episode.delete'), 'uri' => route_to('episode-delete', $podcast->id, $episode->id), 'class' => 'font-semibold text-red-600', ]; } else { $label = lang('Episode.delete'); $icon = icon('forbid'); $title = lang('Episode.messages.unpublishBeforeDeleteTip'); $items[] = [ 'type' => 'html', 'content' => esc(<<{$icon}{$label} HTML), ]; } return '' . ''; }, ], ], $episodes, 'mb-6 mt-4', $podcast ) ?> links() ?> endSection() ?>