= $this->extend('admin/_layout') ?>
= $this->section('title') ?>
= lang('Podcast.edit') ?>
= $this->endSection() ?>
= $this->section('content') ?>
= form_open_multipart(route_to('podcast-edit', $podcast->id), [
'method' => 'post',
'class' => 'flex flex-col max-w-md',
]) ?>
= csrf_field() ?>
= form_label(lang('Podcast.form.title'), 'title') ?>
= form_input([
'id' => 'title',
'name' => 'title',
'class' => 'form-input mb-4',
'value' => old('title', $podcast->title),
'required' => 'required',
]) ?>
= form_label(lang('Podcast.form.name'), 'name') ?>
= form_input([
'id' => 'name',
'name' => 'name',
'class' => 'form-input mb-4',
'value' => old('name', $podcast->name),
'required' => 'required',
]) ?>
= form_label(lang('Podcast.form.description'), 'description') ?>
= form_textarea(
[
'id' => 'description',
'name' => 'description',
'class' => 'form-textarea',
'required' => 'required',
],
old('description', $podcast->description, false),
'data-editor="markdown"'
) ?>
= form_label(
lang('Podcast.form.episode_description_footer'),
'episode_description_footer'
) ?>
= form_textarea(
[
'id' => 'episode_description_footer',
'name' => 'episode_description_footer',
'class' => 'form-textarea',
],
old(
'episode_description_footer',
$podcast->episode_description_footer,
false
),
'data-editor="markdown"'
) ?>
= form_label(lang('Podcast.form.image'), 'image') ?>
= form_input([
'id' => 'image',
'name' => 'image',
'class' => 'form-input mb-4',
'type' => 'file',
'accept' => '.jpg,.jpeg,.png',
]) ?>
= form_label(lang('Podcast.form.language'), 'language') ?>
= form_dropdown(
'language',
$languageOptions,
old('language', $podcast->language),
[
'id' => 'language',
'class' => 'form-select mb-4',
'required' => 'required',
]
) ?>
= form_label(lang('Podcast.form.category'), 'category') ?>
= form_dropdown(
'category',
$categoryOptions,
old('category', $podcast->category),
[
'id' => 'category',
'class' => 'form-select mb-4',
'required' => 'required',
]
) ?>
= form_label(lang('Podcast.form.author'), 'author') ?>
= form_input([
'id' => 'author',
'name' => 'author',
'class' => 'form-input mb-4',
'value' => old('author', $podcast->author),
]) ?>
= form_label(lang('Podcast.form.owner_name'), 'owner_name') ?>
= form_input([
'id' => 'owner_name',
'name' => 'owner_name',
'class' => 'form-input mb-4',
'value' => old('owner_name', $podcast->owner_name),
]) ?>
= form_label(lang('Podcast.form.owner_email'), 'owner_email') ?>
= form_input([
'id' => 'owner_email',
'name' => 'owner_email',
'class' => 'form-input mb-4',
'value' => old('owner_email', $podcast->owner_email),
'type' => 'email',
'required' => 'required',
]) ?>
= form_fieldset('', ['class' => 'flex flex-col mb-4']) ?>
= form_fieldset_close() ?>
= form_label(lang('Podcast.form.copyright'), 'copyright') ?>
= form_input([
'id' => 'copyright',
'name' => 'copyright',
'class' => 'form-input mb-4',
'value' => old('copyright', $podcast->copyright),
]) ?>
= form_label(lang('Podcast.form.custom_html_head'), 'custom_html_head') ?>
= form_textarea(
[
'id' => 'custom_html_head',
'name' => 'custom_html_head',
'class' => 'form-textarea',
],
old('custom_html_head', $podcast->custom_html_head, false),
'data-editor="html"'
) ?>
= form_button([
'content' => lang('Podcast.form.submit_edit'),
'type' => 'submit',
'class' => 'self-end px-4 py-2 bg-gray-200',
]) ?>
= form_close() ?>
= $this->endSection() ?>