@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') }}

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

{{ __('common.basic_info') }}

@if ($errors->has('categories')) {{ $errors->first('categories') }} @endif
@php $tags =[]; foreach($post->tags as $tag){ $tags[] = $tag->name; } $tags = implode(',',$tags); @endphp
@if ($errors->has('tags')) {{ $errors->first('tags') }} @endif

@if ($post->image_url)

@endif
is_commentable==1 ? '':'checked'}} >
status==1 ? 'checked':''}} >
{{ 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