@extends('adminlte::page') @section('title', __('title.edit_video_post')) @section('content_top_nav_right') @endsection @section('content_header') @stop @section('plugins.Flag', true) @section('plugins.BootstrapTagInput', true) @section('plugins.Tinymce', true) @section('plugins.Select2', true) @section('plugins.Filepond', true) @section('plugins.Player', true) @section('plugins.Pace', true) @section('plugins.Toastr', true) @section('plugins.Sweetalert2', true) @section('content')
@method('PUT') @csrf
@php if ($post->post_type == 'video_url'){ $value = old('post_source') ? old('post_source') : $post->post_source; } else { $value = ''; } @endphp post_type != 'video_url') disabled @endif name="post_source" class="video_url form-control @error('post_source') is-invalid @enderror" placeholder="{{ __('form.placeholder_url') }}" value="{{ $value }}"> @error('post_source')
{{ $message }}
@enderror
@php $postSource = json_decode($post->post_source, true); if (is_array($postSource)) { $provider = $postSource['provider']; $embedId = $postSource['embed_id']; } else { $provider = ''; $embedId = ''; } @endphp
post_type != 'video_embed') disabled @endif type="text" name="post_source[embed_id]" class="video_embed form-control @error('post_source.embed_id') is-invalid @enderror" value="{{ old('post_source.embed_id') ?: $embedId }}" placeholder="mRlP799y8B8"> @error('post_source.embed_id')
{{ $message }} dd
@enderror
@if ($errors->has('post_title'))
{{ $errors->first('post_title') }}
@endif

@if ($errors->has('slug'))
{{ $errors->first('slug') }}
@endif

{{ __('form.video_thumbnails') }}

{{ __('form.placeholder_image') }}
{{ __('form.preview_image') }}
{{ __('form.help_upload_post_image') }}
@error('image_url')
{{ $message }}
@enderror

{{ __('form.language') }}

@foreach(\App\Helpers\LocalizationHelper::languageWithFlag() as $trans) @if($trans->language != $language->language)
@if(\App\Helpers\PostHelper::checkExistsTrans($trans->language, $post->translations->first()->value)) @else @endif
@endif @endforeach

{{ __('form.categories') }}

{{ __('form.help_category') }}

{{ __('form.subcategories') }}

{{ __('form.help_subcategories') }}

{{ __('form.tags') }}

{{ __('form.help_tag') }}

{{ __('form.publish') }}

{{ $post->created_at->locale($language->language)->isoFormat('LLL') }} {{ __('button.edit') }} {{ __('button.close') }}
:
{{ __('form.help_public_visibility') }}
@stop @push('css') @include('admin.posts._style') @endpush @push('js') @include('layouts.partials._notification') @include('layouts.partials._switch_lang') @include('layouts.partials._csrf-token') @include('layouts.partials._datepublish_script') @include('admin.posts._script') @endpush @section('footer') @include('layouts.partials._footer') @stop