@extends('backEnd.master') @section('styles') @endsection @section('mainContent') {{ __('blog.edit_post') }} {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'url' => route('blog.posts.update',$post->id), 'method' => 'PUT', 'enctype' => 'multipart/form-data']) }} {{ __('blog.post_info') }} {{__('common.title')}} * @if ($errors->has('title')) {{ $errors->first('title') }} @endif {{__('common.slug')}} * @if ($errors->has('slug')) {{ $errors->first('slug') }} @endif {{__("common.description")}} * @php echo $post->content; @endphp @if ($errors->has('content')) {{ $errors->first('content') }} @endif {{ __('common.basic_info') }} {{ __('common.category') }} * @foreach($CategoryList as $value) id,$cat_id)? 'selected' :''}} > -> {{ $value->name }} @foreach ($value->childs as $child_account) @include('blog::category.category_select', ['child_account' => $child_account]) @endforeach @endforeach @if ($errors->has('categories')) {{ $errors->first('categories') }} @endif @lang('blog.tags') (@lang('product.comma_separated'))* @php $tags =[]; foreach($post->tags as $tag){ $tags[] = $tag->name; } $tags = implode(',',$tags); @endphp @lang('blog.suggested_tags') @if ($errors->has('tags')) {{ $errors->first('tags') }} @endif {{ __('common.image') }}(1000x500)px {{__("common.image")}} @if ($post->image_url) @endif is_commentable==1 ? '':'checked'}} > {{__("blog.close_comments")}} status==1 ? 'checked':''}} > {{__("blog.publish")}} {{__("common.update")}} {{ Form::close() }} @include('backEnd.partials._deleteModalForAjax', ['item_name' => __('common.post_image'),'modal_id' => 'imgModal','form_id' => 'imgForm','delete_item_id' => 'delete_document_id','dataDeleteBtn'=>'document_delete_btn']) @endsection @push('scripts') @endpush