{{ Form::bsBoxOpen() }} {{ Form::bsKeyword($post['seo']['meta_keyword'], [], 'required')}} {{ Form::bsText('Tiêu đề','title',$post['description']['title'], ['data-seo' => 'title'], 'required') }} {{ Form::bsTextAreaEditor('Mô tả','description',$post['description']['description'], ['data-seo' => 'description','class'=>'ckeditor-basic'])}} {{ Form::bsTextAreaEditor('Nội dung','content',$post['description']['content'], ['data-seo' => 'content']) }} {{ Form::bsBoxClose() }} @if (Addon::check('related_product')) {{ Form::bsBoxOpen('Sản phẩm liên quan') }}
{{Form::bsSelectItem('Chọn sản phẩm', 'product_select', 'product')}}
@if(!empty(@$relatedProducts)) @foreach($relatedProducts as $related) @endforeach @endif
Hình Tiêu đề
{{$related->title}}
{{ Form::bsBoxClose() }} @section('scripts') @parent @endsection @endif {{ Form::bsSeo('title',$post['seo'], 'detail') }}
@php($post['published_at'] = !empty($post['published_at']) ? $post['published_at'] : (new DateTime())->format('Y-m-d H:i:s')) {{ Form::bsSchedule($post['is_published'],$post['published_at'])}} {{ Form::bsBoxOpen('Phân loại') }} {{ Form::bsSelectCategoryTree('thể loại','cat_id',['taxonomy'=>$taxonomy,'lang_code'=>$lang_code],$post['cat_id']??request()->get('cat_id')) }} {{ Form::bsMultiSelect('nhóm bài viết','group_feature_ids[]',GroupFeature::getAllByTaxonomy($taxonomy,0),$post['group_feature_ids']) }} @if (Addon::check('tag')) {{ Form::bsMultiSelect('Tags','tags_title[]',Post::getAllTag($taxonomy),Post::getTags($post['id']), ['data-create' => 'true']) }} @endif {{ Form::bsBoxClose() }} @php($size = (WbTheme::getThumbConfig('post'))) {{ Form::bsLfFile("Hình đại diện ($size)",'thumbnail',$post['thumbnail'],['width'=>150,'height'=>120]) }} {{ Form::hidden('menu_id',request()->menu_id) }} {{ Form::hidden('taxonomy','post') }} @if(!empty($post->created_by))
Bài viết được tạo bởi
@php( $auth = \getAdminById($post->created_by))

Tên: {{$auth['name']}}

Email: {{$auth['email']}}

@endif
@include('post::script')