{!! Form::open(['route' => 'admin::blocks::post', 'class' => 'form-horizontal', 'id' => 'blockAdd']) !!}
{!! Form::label('title', trans('Blocks::admin/forms/add.labels.title')) !!}
{!! Form::text('title', null, ['class' => 'form-control', 'placeholder' => trans('Blocks::admin/forms/add.inputs.placeholders.title')]) !!}
{!! Form::label('type', trans('Blocks::admin/forms/add.labels.type')) !!}
{!! Form::select('type', $blockTypes, null, ['class' => 'form-control', 'id' => 'type']) !!}
@cstack('Blocks::admin.sections.new.after_block_types')
{!! Form::label('price_from', trans('Blocks::admin/forms/add.labels.price_from')) !!}
{!! Form::number('price_from', null, ['class' => 'form-control', 'placeholder' => trans('Blocks::admin/forms/add.inputs.placeholders.price_from'), 'min' => "0"]) !!}
{!! Form::label('price_to', trans('Blocks::admin/forms/add.labels.price_to')) !!}
{!! Form::number('price_to', null, ['class' => 'form-control', 'placeholder' => trans('Blocks::admin/forms/add.inputs.placeholders.price_to'), 'min' => "0"]) !!}
{!! Form::label('products_add_last_days', trans('Blocks::admin/forms/add.labels.products_add_last_days')) !!}
{!! Form::number('products_add_last_days', null, ['class' => 'form-control', 'placeholder' => trans('Blocks::admin/forms/add.inputs.placeholders.products_add_last_days'), 'min' => "1"]) !!}
{!! Form::label('max_count', trans('Blocks::admin/forms/add.labels.max_count')) !!}
{!! Form::number('max_count', null, ['class' => 'form-control', 'placeholder' => trans('Blocks::admin/forms/add.inputs.placeholders.max_count'), 'min' => "0"]) !!}
{!! Form::label('category_search', trans('Blocks::admin/forms/add.labels.category_search')) !!}
{!! Form::select('categoriesSearch', [], null, ['class' => 'form-control']) !!}
{!! Form::label('category_select', trans('Blocks::admin/forms/add.labels.category_select')) !!}
{!! Form::label('category_selected', trans('Blocks::admin/forms/add.labels.category_selected')) !!}
{{ Form::hidden('category', null, array('id' => 'category')) }}
{!! Form::label('manufacturer', trans('Blocks::admin/forms/add.labels.manufacturer')) !!}
{!! Form::select('manufacturer', [], null, ['class' => 'form-control']) !!}
{!! Form::checkbox('only_best_sell', 1, false, ['id' => 'only_best_sell', 'class' => 'form-control']) !!} {!! Form::label('only_best_sell', trans('Blocks::admin/forms/add.labels.only_best_sell')) !!}
{!! Form::checkbox('only_bestsellers', 1, false, ['id' => 'only_bestsellers', 'class' => 'form-control']) !!} {!! Form::label('only_bestsellers', trans('Blocks::admin/forms/add.labels.only_bestsellers')) !!}
{!! Form::checkbox('only_news', 1, false, ['id' => 'only_news', 'class' => 'form-control']) !!} {!! Form::label('only_news', trans('Blocks::admin/forms/add.labels.only_news')) !!}
{!! Form::label('content', trans('Blocks::admin/forms/add.labels.content')) !!}
{!! Form::textarea('content', '', ['id' => 'content', 'class' => 'ckeditor']) !!}
{!! Form::label('photos', trans('Blocks::admin/forms/add.labels.photos')) !!}
@include('Blocks::admin.sections.photos')
{!! Form::label('', trans('Blocks::admin/forms/add.labels.multistores'), ['class' => 'col-sm-2 control-label']) !!}
@foreach ($multistoreList as $multistore)
{!! Form::checkbox( 'multistore[' . $multistore->id . ']', 1, '', ['id' => 'multistore[' . $multistore->id . ']']) !!} {!! Form::label('multistore[' . $multistore->id . ']', $multistore->name) !!}
@endforeach
{!! Form::submit(trans('Blocks::admin/forms/add.submit'), ['class' => 'btn btn-success', 'id' => 'add_new_block_submit']) !!}
{!! Form::close() !!} @include('Blocks::admin.js.add') @include('Blocks::admin/js.categories') @include('Blocks::admin/js.manufacturer') @push('footScripts') @endpush