{{ __('site.page_post_edit_h1') }}
@php
if (\Session::has('error_title')) {
$inputTitle = '';
} else {
$inputTitle = old('title', htmlspecialchars_decode($dataPost->title));
}
@endphp
@if (\Session::has('error_title'))
{!! \Session::get('error_title') !!}
@endif
@php
if (\Session::has('error_short')) {
$inputShort = '';
} else {
$inputShort= old('short_text', htmlspecialchars_decode($dataPost->short_text));
}
@endphp
@if (\Session::has('error_short'))
{!! \Session::get('error_short') !!}
@endif
@php
$selectedVisibility = old('visibility', $dataPost->status);
@endphp
@php
$selectedAllowComments = old('allow_comments', $dataPost->allow_comments ?? '1');
@endphp
@php
if (\Session::has('error_cat')) {
$selectedCategories = [];
} else {
$selectedCategories = old('categories', $expCategories ?? []);
}
@endphp
@foreach($getCategories as $category)
{{ __('site.page_post_new_side_grid2_link') }}
id, $selectedCategories) ? 'checked' : '' }}
>
@endforeach
@if (\Session::has('error_cat'))
{!! \Session::get('error_cat') !!}
@endif
{{ str_replace('%1%','800x450',str_replace('%2%','2',__('site.page_post_new_side_grid3_desc'))) }}