@extends('web.default.panel.layouts.panel_layout') @push('styles_top') @endpush @section('content') {{ csrf_field() }} @if(!empty(getGeneralSettings('content_translate')) and !empty($userLanguages)) {{ trans('auth.language') }} @foreach($userLanguages as $lang => $language) get('locale', app()->getLocale())) == mb_strtolower($lang)) selected @endif>{{ $language }} @endforeach @error('locale') {{ $message }} @enderror @else @endif {{ trans('admin/main.title') }} @error('title') {{ $message }} @enderror {{ trans('/admin/main.category') }} {{ trans('admin/main.choose_category') }} @foreach($blogCategories as $blogCategory) category_id == $blogCategory->id) or (old('category_id') == $blogCategory->id)) ? 'selected="selected"' : '') }}>{{ $blogCategory->title }} @endforeach @error('category_id') {{ $message }} @enderror {{ trans('public.cover_image') }} @error('image') {{ $message }} @enderror {{ trans('public.description') }} {!! (!empty($post) and !empty($post->translate($locale))) ? $post->translate($locale)->description : old('description') !!} @error('description') {{ $message }} @enderror {{ trans('admin/main.content') }} {!! (!empty($post) and !empty($post->translate($locale))) ? $post->translate($locale)->content : old('content') !!} @error('content') {{ $message }} @enderror {{ trans('admin/main.save_change') }} @endsection @push('scripts_bottom') @endpush