@push('js') @endpush
@include('core::admin._button-back', ['url' => $model->indexUrl(), 'title' => __('Chapters')]) @include('core::admin._title', ['default' => __('New chapter')]) @component('core::admin._buttons-form', ['model' => $model]) @endcomponent
@include('core::admin._form-errors') @include('core::form._title-and-slug')
{!! TranslatableBootForm::hidden('status')->value(0) !!} {!! TranslatableBootForm::checkbox(__('Published'), 'status') !!} {!! BootForm::hidden('international')->value(0) !!} {!! BootForm::checkbox(__('International'), 'international') !!}
{!! BootForm::select(__('Parent Chapter (if you want to make sub-chapter then choose chapter here)'), 'parent_id')->options([''=>'Select']+TypiCMS\Modules\Chapters\Models\Chapter::published()->pluck('title','id')->toArray())->selected(!!$model->id ? $model->parent_id : '') !!}
@if (is_array($model->staffs)) @if ($model->staffs) @foreach ($model->staffs as $staff)
@endforeach @else
@endif @endif
{!! BootForm::textarea(__('Summary'), 'summary')->addClass('summernote') !!} {!! BootForm::text(__('Meta title'), 'meta_title') !!} {!! BootForm::textarea(__('Meta description'), 'meta_description')->rows(4) !!}