@extends('admin.templates.panel-form-template') @section('title') @if(isset($item)) {{__("Edit post")}} [{{$item->title}}] @else {{__("Add new post")}} @endif - @endsection @section('form')
@include('components.err')

{{__("Tips")}}

  • {{__("Recommends")}}
@if (isset($item))

{{__("Index image")}}

{{$item->title}}
@endif

{{__("Groups")}}

    {!!showCatNestedControl($cats,old('cat',isset($item)?$item->groups()->pluck('id')->toArray():[]))!!}

{{__("Tags")}}

{{-- {{json_encode($item->tags->pluck('name')->toArray())}}--}} {{-- --}}

{{__("Icon")}}

@if(isset($item))
@include('components.panel-attachs',['attachs' => $item->attachs])
@endif

@if(isset($item)) {{__("Edit post")}} [{{$item->title}}] @else {{__("Add new post")}} @endif

table_of_contents??0) != 0) checked @endif type="checkbox" id="table_of_contents">
{{-- @trix(\App\Post::class, 'body')--}}
is_pinned??0) != 0) checked @endif type="checkbox" id="ispin">
@endsection