@extends('front.layouts.app') @section('content') {{--

{{ \App\Helpers\TranslationHelper::translate('This content will be available soon') }}

--}}

{{ setting('title_royalCrownCoin', app()->getLocale()) }}

{!! setting('description_royalCrownCoin', app()->getLocale()) !!}

Logo
@php $locale = app()->getLocale(); $videoOneSetting = \App\Models\Setting::where('option', 'Video_one_royalCrownCoin')->first(); $videoTwoSetting = \App\Models\Setting::where('option', 'Video_tow_royalCrownCoin')->first(); // $videoOneUrl = $videoOneSetting?->getFirstMediaUrl("Video_one_royalCrownCoin_$locale"); $videoOneLinks = $videoOneSetting->value; if ($videoOneLinks && str_contains($videoOneLinks, 'youtube.com/watch')) { parse_str(parse_url($videoOneLinks, PHP_URL_QUERY), $query); $youtubeId = $query['v'] ?? ''; $videoOneLinks = 'https://www.youtube.com/embed/' . $youtubeId; } elseif ($videoOneLinks && str_contains($videoOneLinks, 'youtu.be/')) { // دعم روابط youtu.be القصيرة $youtubeId = last(explode('/', $videoOneLinks)); $videoOneLinks = 'https://www.youtube.com/embed/' . $youtubeId; } // $videoTwoUrl = $videoTwoSetting?->getFirstMediaUrl("Video_tow_royalCrownCoin_$locale"); $videoTwoUrl = $videoOneSetting->value; if ($videoTwoUrl && str_contains($videoTwoUrl, 'youtube.com/watch')) { parse_str(parse_url($videoTwoUrl, PHP_URL_QUERY), $query); $youtubeId = $query['v'] ?? ''; $videoTwoUrl = 'https://www.youtube.com/embed/' . $youtubeId; } elseif ($videoTwoUrl && str_contains($videoTwoUrl, 'youtu.be/')) { // دعم روابط youtu.be القصيرة $youtubeId = last(explode('/', $videoTwoUrl)); $videoTwoUrl = 'https://www.youtube.com/embed/' . $youtubeId; } @endphp
@if ($videoOneLinks) {{-- --}} @else

{{ __('No video uploaded.') }}

@endif
@if ($videoTwoUrl) {{-- --}} @else

{{ __('No video uploaded.') }}

@endif
{{--
--}} @endsection @push('js') {{-- --}} @endpush