= anchor($platform->home_url, icon('external-link', 'mx-auto'), [
'class' => 'flex-1 text-gray-600 hover:text-gray-900',
@@ -32,7 +36,7 @@
]),
]) ?>
= $platform->submit_url
- ? anchor($platform->submit_url, icon('upload', 'mx-auto'), [
+ ? anchor($platform->submit_url, icon('add-box', 'mx-auto'), [
'class' => 'flex-1 text-gray-600 hover:text-gray-900',
'target' => '_blank',
'rel' => 'noopener noreferrer',
@@ -48,7 +52,11 @@
= $platform->link_url
? anchor(
- route_to('platforms-remove', $podcast->id, $platform->id),
+ route_to(
+ 'podcast-platform-remove',
+ $podcast->id,
+ $platform->slug
+ ),
icon('delete-bin', 'mx-auto'),
[
'class' =>
@@ -61,26 +69,37 @@
]
)
: '' ?>
- = form_label($platform->label, $platform->name, [
+ = form_label($platform->label, $platform->slug, [
'class' => 'font-semibold mb-2',
]) ?>
= form_input([
- 'id' => $platform->name,
- 'name' => 'platforms[' . $platform->name . '][url]',
+ 'id' => $platform->slug . '_link_url',
+ 'name' => 'platforms[' . $platform->slug . '][url]',
'class' => 'form-input mb-1 w-full',
- 'value' => old($platform->name, $platform->link_url),
+ 'value' => old($platform->slug . '_link_url', $platform->link_url),
'type' => 'url',
'placeholder' => 'https://...',
]) ?>
+ = form_input([
+ 'id' => $platform->slug . '_link_content',
+ 'name' => 'platforms[' . $platform->slug . '][content]',
+ 'class' => 'form-input mb-1 w-full',
+ 'value' => old(
+ $platform->slug . '_link_content',
+ $platform->link_content
+ ),
+ 'type' => 'text',
+ 'placeholder' => lang("Platforms.description.{$platform->type}"),
+ ]) ?>
= form_switch(
lang('Platforms.visible'),
[
- 'id' => $platform->name . '_visible',
- 'name' => 'platforms[' . $platform->name . '][visible]',
+ 'id' => $platform->slug . '_visible',
+ 'name' => 'platforms[' . $platform->slug . '][visible]',
],
'yes',
old(
- $platform->name . '_visible',
+ $platform->slug . '_visible',
$platform->is_visible ? $platform->is_visible : false
),
'text-sm'
diff --git a/app/Views/podcast.php b/app/Views/podcast.php
index 6a3e5d56..e8f5d659 100644
--- a/app/Views/podcast.php
+++ b/app/Views/podcast.php
@@ -32,7 +32,7 @@
-
+
= $podcast->title ?> @= $podcast->name ?>
@@ -46,23 +46,65 @@
''
: '' ?>
-
+
+
+
+
+
+
= $podcast->description_html ?>