@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

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