{!! Form::open(['route' => ['admin::bars::edit::post', $bar], 'class' => 'form-horizontal']) !!}
{!! Form::label('name', trans('Bars::admin/forms/edit.labels.name')) !!}
{!! Form::text('name', $bar->c('getExistsLanguageColumnValue', 'name'), ['class' => 'form-control', 'placeholder' => trans('Bars::admin/lists/list.header.name')]) !!}
{!! Form::label('place', trans('Bars::admin/forms/edit.labels.place')) !!}
{!! Form::select('place', $barPlaces, $bar->place, ['class' => 'form-control', 'id' => 'place']) !!}
{!! Form::label('position', trans('Bars::admin/forms/edit.labels.position')) !!}
{!! Form::text('position', $bar->position, ['class' => 'form-control', 'placeholder' => trans('Bars::admin/forms/edit.inputs.placeholders.position')]) !!}
@if ($bar->type === $bar::TEXT_TYPE)
{!! Form::label('content', trans('Bars::admin/forms/edit.labels.content')) !!}
{!! Form::textarea('content', $bar->c('getBarTextLanguageContent'), ['id' => 'content', 'class' => 'ckeditor']) !!}
@endif
{!! Form::label('', trans('Bars::admin/forms/edit.labels.multistores'), ['class' => 'col-sm-2 control-label']) !!}
@foreach ($multistoreList as $multistore)
{!! Form::checkbox( 'multistore[' . $multistore->id . ']', 1, $bar->barMultistore()->where('store_id', $multistore->id)->first() ? 'true' : '', ['id' => 'multistore[' . $multistore->id . ']']) !!} {!! Form::label('multistore[' . $multistore->id . ']', $multistore->name) !!}
@endforeach
{!! Form::submit(trans('Bars::admin/forms/edit.submit'), ['class' => 'btn btn-success', 'id' => 'edit_bar_submit']) !!}
{!! Form::close() !!}