@extends('adminlte::page') @section('title', __('title.edit_page')) @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.Pace', true) @section('plugins.Toastr', true) @section('plugins.Sweetalert2', true) @section('content')
@method('PUT') @csrf
@if ($errors->has('post_title'))
{{ $errors->first('post_title') }}
@endif

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

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

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

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

@if (PostHelper::isImageUrlAvailable($page))
{{ __('form.placeholder_image') }}
{{ __('form.preview_image') }}
{{ __('form.help_upload_post_image') }}
@error('image_url')
{{ $message }}
@enderror
@else
{{ __('form.placeholder_image') }}
{{ __('form.preview_image') }}
{{ __('form.help_upload_post_image') }}
@error('image_url')
{{ $message }}
@enderror
@endif
@error('thumb_caption')
{{ $message }}
@enderror

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

{{ __('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('admin.pages._script') @endpush @section('footer') @include('layouts.partials._footer') @stop