@extends('master') @section('content') @php $currency = \App\Models\Setting::first()->currency; $videoId = null; if (!empty($live_stream->url)) { preg_match( '/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|embed)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/', $live_stream->url, $matches ); $videoId = $matches[1] ?? null; } @endphp @include('admin.layout.breadcrumbs', [ 'title' => $stream_type == "what_we_do" ? "What We Do?" : "Live Stream", ]) @if (session('status')) {{ session('status') }} × @endif {{-- Form Section --}} {{ "View " . ($stream_type == "what_we_do" ? "What We Do?" : "Live Stream") }} @if ($videoId) @endif @csrf @method('PUT') {{ __('Name') }} name }}" class="form-control @error('name') is-invalid @enderror" {{ $stream_type == 'what_we_do' ? 'readonly' : '' }}> @error('name') {{ $message }} @enderror {{ __('Video URL') }} @error('url') {{ $message }} @enderror {{ __('Update') }} @endsection