@extends('adminlte::page') @section('title', __('title.edit_post')) @section('content_top_nav_right') @endsection @section('content_header') @stop @inject('postHelper', 'App\Helpers\PostHelper') @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, $post->translations->first()->value)) @else @endif
@endif @endforeach

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

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

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

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

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

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

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

@if (PostHelper::isImageUrlAvailable($post))
{{ __('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') }}

{{ $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