{{ trans('plugins/toc::toc.settings.is_enabled') }}
{!! Form::customSelect('is_enabled', [
'yes' => trans('core/base::base.yes'),
'no' => trans('core/base::base.no'),
], ToCHelper::config('is_enabled')) !!}
{{ trans('plugins/toc::toc.settings.is_enabled_help') }}
{{ trans('plugins/toc::toc.settings.headings') }}
@for ($i = 1; $i <= 6; $i++)
{!! Form::checkbox('heading_levels[]', $i, in_array($i, ToCHelper::config('heading_levels')), ['id' => 'heading-levels-' . $i]) !!}
@endfor
{{ trans('plugins/toc::toc.settings.headings_help') }}
{{ trans('plugins/toc::toc.settings.position') }}
{!! Form::customSelect('position', [
'before-first-heading' => 'Before first heading',
'after-first-heading' => 'After first heading',
'top' => 'Top',
'bottom' => 'Bottom',
], ToCHelper::config('position'), ['id' => 'position']) !!}
{{ trans('plugins/toc::toc.settings.display_toc_when') }}
{!! Form::number('start', ToCHelper::config('start'), [
'id' => 'start',
'min' => '0',
'class' => 'form-control' . ($errors->has('start') ? ' is-invalid' : ''),
'required' => true,
]) !!}
{{ trans('plugins/toc::toc.settings.or_more_headings_are_presend') }}
{{ trans('plugins/toc::toc.settings.css_container_class') }}
{!! Form::text('css_container_class', ToCHelper::config('css_container_class'), [
'class' => 'form-control' . ($errors->has('css_container_class') ? ' is-invalid' : ''),
'id' => 'css_container_class',
]) !!}
@if ($errors->has('css_container_class'))
{{ $errors->first('css_container_class') }}
@endif
{{ trans('plugins/toc::toc.settings.anchor_prefix') }}
{!! Form::text('anchor_prefix', ToCHelper::config('anchor_prefix'), [
'class' => 'form-control' . ($errors->has('anchor_prefix') ? ' is-invalid' : ''),
'id' => 'anchor_prefix',
]) !!}
@if ($errors->has('anchor_prefix'))
{{ $errors->first('anchor_prefix') }}
@endif
{{ trans('plugins/toc::toc.settings.show_hierarchy') }}
{!! Form::customSelect('show_hierarchy', [
'yes' => trans('core/base::base.yes'),
'no' => trans('core/base::base.no'),
], ToCHelper::config('show_hierarchy')) !!}
{{ trans('plugins/toc::toc.settings.ordered_list') }}
{!! Form::customSelect('ordered_list', [
'yes' => trans('core/base::base.yes'),
'no' => trans('core/base::base.no'),
], ToCHelper::config('ordered_list')) !!}
{{ trans('plugins/toc::toc.settings.show_options_in_form') }}
{!! Form::customSelect('show_options_in_form', [
'yes' => trans('core/base::base.yes'),
'no' => trans('core/base::base.no'),
], ToCHelper::config('show_options_in_form')) !!}
{{ trans('plugins/toc::toc.settings.show_options_in_form_help') }}
{{ trans('plugins/toc::toc.settings.context_meta_box_in_form') }}
{!! Form::customSelect('context_meta_box_in_form', [
'side' => trans('plugins/toc::toc.settings.context.sidebar'),
'top' => trans('plugins/toc::toc.settings.context.top'),
'advanced' => trans('plugins/toc::toc.settings.context.advanced'),
], ToCHelper::config('context_meta_box_in_form')) !!}