@if($customFields)
{!! trans('lang.main_fields') !!}
@endif
{!! Form::label('name', trans("lang.store_name"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::text('name', null, ['class' => 'form-control','placeholder'=> trans("lang.store_name_placeholder")]) !!}
{{ trans("lang.store_name_help") }}
@hasanyrole('admin|manager')
{!! Form::label('drivers[]', trans("lang.store_drivers"),['class' => 'col-3 control-label text-right']) !!}
{!! Form::select('drivers[]', $drivers, $driversSelected, ['class' => 'select2 form-control' , 'multiple'=>'multiple']) !!}
{{ trans("lang.store_drivers_help") }}
{!! Form::label('delivery_fee', trans("lang.store_delivery_fee"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::number('delivery_fee', null, ['class' => 'form-control','step'=>'any','placeholder'=> trans("lang.store_delivery_fee_placeholder")]) !!}
{{ trans("lang.store_delivery_fee_help") }}
{!! Form::label('delivery_range', trans("lang.store_delivery_range"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::number('delivery_range', null, ['class' => 'form-control', 'step'=>'any','placeholder'=> trans("lang.store_delivery_range_placeholder")]) !!}
{{ trans("lang.store_delivery_range_help") }}
{!! Form::label('default_tax', trans("lang.store_default_tax"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::number('default_tax', null, ['class' => 'form-control', 'step'=>'any','placeholder'=> trans("lang.store_default_tax_placeholder")]) !!}
{{ trans("lang.store_default_tax_help") }}
@endhasrole
{!! Form::label('phone', trans("lang.store_phone"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::text('phone', null, ['class' => 'form-control','placeholder'=> trans("lang.store_phone_placeholder")]) !!}
{{ trans("lang.store_phone_help") }}
{!! Form::label('mobile', trans("lang.store_mobile"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::text('mobile', null, ['class' => 'form-control','placeholder'=> trans("lang.store_mobile_placeholder")]) !!}
{{ trans("lang.store_mobile_help") }}
{!! Form::label('closed', trans("lang.store_closed"),['class' => 'col-3 control-label text-right']) !!}
{!! Form::hidden('closed', 0) !!} {!! Form::checkbox('closed', 1, null) !!}
{!! Form::label('available_for_delivery', trans("lang.store_available_for_delivery"),['class' => 'col-3 control-label text-right']) !!}
{!! Form::hidden('available_for_delivery', 0) !!} {!! Form::checkbox('available_for_delivery', 1, null) !!}
{!! Form::label('image', trans("lang.store_image"), ['class' => 'col-3 control-label text-right']) !!}
{{ trans('lang.media_select')}}
{{ trans("lang.store_image_help") }}
@prepend('scripts') @endprepend
{!! Form::label('description', trans("lang.store_description"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::textarea('description', null, ['class' => 'form-control','placeholder'=> trans("lang.store_description_placeholder") ]) !!}
{{ trans("lang.store_description_help") }}
{!! Form::label('information', trans("lang.store_information"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::textarea('information', null, ['class' => 'form-control','placeholder'=> trans("lang.store_information_placeholder") ]) !!}
{{ trans("lang.store_information_help") }}
@hasrole('admin')
{!! trans('lang.admin_area') !!}
{!! Form::label('users[]', trans("lang.store_users"),['class' => 'col-3 control-label text-right']) !!}
{!! Form::select('users[]', $user, $usersSelected, ['class' => 'select2 form-control' , 'multiple'=>'multiple']) !!}
{{ trans("lang.store_users_help") }}
{!! Form::label('fields[]', trans("lang.store_fields"),['class' => 'col-3 control-label text-right']) !!}
{!! Form::select('fields[]', $field, $fieldsSelected, ['class' => 'select2 form-control' , 'multiple'=>'multiple']) !!}
{{ trans("lang.store_fields_help") }}
{!! Form::label('admin_commission', trans("lang.store_admin_commission"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::number('admin_commission', null, ['class' => 'form-control', 'step'=>'any', 'placeholder'=> trans("lang.store_admin_commission_placeholder")]) !!}
{{ trans("lang.store_admin_commission_help") }}
{!! Form::label('active', trans("lang.store_active"),['class' => 'col-3 control-label text-right']) !!}
{!! Form::hidden('active', 0) !!} {!! Form::checkbox('active', 1, null) !!}
@endhasrole @if($customFields)
{!! trans('lang.custom_field_plural') !!}
{!! $customFields !!}
@endif
{{trans('lang.save')}} {{trans('lang.store')}}
{{trans('lang.cancel')}}