diff --git a/app/Filament/Tenant/Pages/Faq.php b/app/Filament/Tenant/Pages/Faq.php index 5319b29..245e881 100644 --- a/app/Filament/Tenant/Pages/Faq.php +++ b/app/Filament/Tenant/Pages/Faq.php @@ -45,6 +45,35 @@ class Faq extends Page return Hints::AREAS; } + /** + * Convert a YouTube / Vimeo watch URL to the embed URL that goes in + * an + + @elseif ($videoRaw) +
+
🎥
+
+

{{ __('Video tutorial') }}

+

+ {{ __('URL nerecunoscut — deschide-l direct:') }} + {{ $videoRaw }} +

+
+
+ @elseif ($user?->isAdmin()) +
+
🎥
+
+

{{ __('Video tutorial') }}

+

+ {{ __('Adaugă un link YouTube/Vimeo în') }} + {{ __('Setări → Liste configurabile') }} → +

+
+
+ @endif + {{-- CONTROLS --}}