@if($customFields)
{!! trans('lang.main_fields') !!}
@endif
{!! Form::label('image', trans("lang.e_provider_image"), ['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{{ trans('lang.media_select')}}
{{ trans("lang.e_provider_image_help") }}
@prepend('scripts') @endprepend
{!! Form::label('name', trans("lang.e_provider_name"), ['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::text('name', null, ['class' => 'form-control','placeholder'=> trans("lang.e_provider_name_placeholder")]) !!}
{{ trans("lang.e_provider_name_help") }}
{!! Form::label('e_provider_type_id', trans("lang.e_provider_e_provider_type_id"),['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::select('e_provider_type_id', $eProviderType, null, ['class' => 'select2 form-control']) !!}
{{ trans("lang.e_provider_e_provider_type_id_help") }}
{!! Form::label('users[]', trans("lang.e_provider_users"),['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::select('users[]', $user, $usersSelected, ['class' => 'select2 form-control' , 'multiple'=>'multiple']) !!}
{{ trans("lang.e_provider_users_help") }}
{!! Form::label('description', trans("lang.e_provider_description"), ['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::textarea('description', null, ['class' => 'form-control','placeholder'=> trans("lang.e_provider_description_placeholder") ]) !!}
{{ trans("lang.e_provider_description_help") }}
{!! Form::label('phone_number', trans("lang.e_provider_phone_number"), ['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::text('phone_number', null, ['class' => 'form-control','placeholder'=> trans("lang.e_provider_phone_number_placeholder")]) !!}
{{ trans("lang.e_provider_phone_number_help") }}
{!! Form::label('mobile_number', trans("lang.e_provider_mobile_number"), ['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::text('mobile_number', null, ['class' => 'form-control','placeholder'=> trans("lang.e_provider_mobile_number_placeholder")]) !!}
{{ trans("lang.e_provider_mobile_number_help") }}
{!! Form::label('addresses[]', trans("lang.e_provider_addresses"),['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::select('addresses[]', $address, $addressesSelected, ['class' => 'select2 form-control' , 'multiple'=>'multiple']) !!}
{{ trans("lang.e_provider_addresses_help") }} @can('addresses.create') {{__('lang.address_create')}} @endcan
{!! Form::label('taxes[]', trans("lang.e_provider_taxes"),['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::select('taxes[]', $tax, $taxesSelected, ['class' => 'select2 form-control' , 'multiple'=>'multiple']) !!}
{{ trans("lang.e_provider_taxes_help") }}
{!! Form::label('availability_range', trans("lang.e_provider_availability_range"), ['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::number('availability_range', null, ['class' => 'form-control','step'=>'any', 'min'=>'0', 'placeholder'=> trans("lang.e_provider_availability_range_placeholder")]) !!}
{{trans("lang.app_setting_".setting('distance_unit','mi'))}}
{{ trans("lang.e_provider_availability_range_help") }}
@if($customFields)
{!! trans('lang.custom_field_plural') !!}
{!! $customFields !!}
@endif
@role('admin')
{!! Form::label('accepted', trans("lang.e_provider_accepted"),['class' => 'control-label my-0 mx-3']) !!} {!! Form::hidden('accepted', 0, ['id'=>"hidden_accepted"]) !!} {!! Form::checkbox('accepted', 1, null) !!}
@endrole
{!! Form::label('available', trans("lang.e_provider_available"),['class' => 'control-label my-0 mx-3']) !!} {!! Form::hidden('available', 0, ['id'=>"hidden_available"]) !!} {!! Form::checkbox('available', 1, null) !!}
{!! Form::label('featured', trans("lang.e_provider_featured"),['class' => 'control-label my-0 mx-3']) !!} {!! Form::hidden('featured', 0, ['id'=>"hidden_featured"]) !!} {!! Form::checkbox('featured', 1, null) !!}
{{trans('lang.cancel')}}