@if($customFields)
{!! trans('lang.main_fields') !!}
@endif
{!! Form::label('name', trans("lang.market_name"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::text('name', null, ['class' => 'form-control','placeholder'=> trans("lang.market_name_placeholder")]) !!}
{{ trans("lang.market_name_help") }}
@hasanyrole('admin|manager')
{!! Form::label('drivers[]', trans("lang.market_drivers"),['class' => 'col-3 control-label text-right']) !!}
{!! Form::select('drivers[]', $drivers, $driversSelected, ['class' => 'select2 form-control' , 'multiple'=>'multiple']) !!}
{{ trans("lang.market_drivers_help") }}
{!! Form::label('delivery_fee', trans("lang.market_delivery_fee"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::number('delivery_fee', null, ['class' => 'form-control','step'=>'any','placeholder'=> trans("lang.market_delivery_fee_placeholder")]) !!}
{{ trans("lang.market_delivery_fee_help") }}
{!! Form::label('delivery_range', trans("lang.market_delivery_range"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::number('delivery_range', null, ['class' => 'form-control', 'step'=>'any','placeholder'=> trans("lang.market_delivery_range_placeholder")]) !!}
{{ trans("lang.market_delivery_range_help") }}
{!! Form::label('default_tax', trans("lang.market_default_tax"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::number('default_tax', null, ['class' => 'form-control', 'step'=>'any','placeholder'=> trans("lang.market_default_tax_placeholder")]) !!}
{{ trans("lang.market_default_tax_help") }}
@endhasanyrole
{!! Form::label('phone', trans("lang.market_phone"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::text('phone', null, ['class' => 'form-control','placeholder'=> trans("lang.market_phone_placeholder")]) !!}
{{ trans("lang.market_phone_help") }}
{!! Form::label('mobile', trans("lang.market_mobile"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::text('mobile', null, ['class' => 'form-control','placeholder'=> trans("lang.market_mobile_placeholder")]) !!}
{{ trans("lang.market_mobile_help") }}
{!! Form::label('address', trans("lang.market_address"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::text('address', null, ['class' => 'form-control','placeholder'=> trans("lang.market_address_placeholder")]) !!}
{{ trans("lang.market_address_help") }}
{!! Form::label('latitude', trans("lang.market_latitude"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::text('latitude', null, ['class' => 'form-control','placeholder'=> trans("lang.market_latitude_placeholder")]) !!}
{{ trans("lang.market_latitude_help") }}
{!! Form::label('longitude', trans("lang.market_longitude"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::text('longitude', null, ['class' => 'form-control','placeholder'=> trans("lang.market_longitude_placeholder")]) !!}
{{ trans("lang.market_longitude_help") }}
{!! Form::label('closed', trans("lang.market_closed"),['class' => 'col-3 control-label text-right']) !!}
{!! Form::label('available_for_delivery', trans("lang.market_available_for_delivery"),['class' => 'col-3 control-label text-right']) !!}
{!! Form::label('image', trans("lang.market_image"), ['class' => 'col-3 control-label text-right']) !!}
{{ trans('lang.media_select')}}
{{ trans("lang.market_image_help") }}
@prepend('scripts') @endprepend
{!! Form::label('description', trans("lang.market_description"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::textarea('description', null, ['class' => 'form-control','placeholder'=> trans("lang.market_description_placeholder") ]) !!}
{{ trans("lang.market_description_help") }}
{!! Form::label('information', trans("lang.market_information"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::textarea('information', null, ['class' => 'form-control','placeholder'=> trans("lang.market_information_placeholder") ]) !!}
{{ trans("lang.market_information_help") }}
@hasrole('admin')
{!! trans('lang.admin_area') !!}
{!! Form::label('users[]', trans("lang.market_users"),['class' => 'col-3 control-label text-right']) !!}
{!! Form::select('users[]', $user, $usersSelected, ['class' => 'select2 form-control' , 'multiple'=>'multiple']) !!}
{{ trans("lang.market_users_help") }}
{!! Form::label('fields[]', trans("lang.market_fields"),['class' => 'col-3 control-label text-right']) !!}
{!! Form::select('fields[]', $field, $fieldsSelected, ['class' => 'select2 form-control' , 'multiple'=>'multiple']) !!}
{{ trans("lang.market_fields_help") }}
{!! Form::label('admin_commission', trans("lang.market_admin_commission"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::number('admin_commission', null, ['class' => 'form-control', 'step'=>'any', 'placeholder'=> trans("lang.market_admin_commission_placeholder")]) !!}
{{ trans("lang.market_admin_commission_help") }}
@endhasrole @if($customFields)
{!! trans('lang.custom_field_plural') !!}
{!! $customFields !!}
@endif
{{trans('lang.cancel')}}