{{ Form::label('name',__('message.name').' *',['class'=>'form-control-label'], false ) }}
{{ Form::text('name',old('name'),['placeholder' => __('message.name'),'class' =>'form-control','required']) }}
@if ( $id == null )
@else
@endif
{{ Form::select('region_id', isset($id) ? [ optional($data->region)->id => optional($data->region)->name ] : [] , old('region_id') , [
'data-ajax--url' => route('ajax-list', [ 'type' => 'region' ]),
'data-placeholder' => __('message.select_field', [ 'name' => __('message.region') ]),
'class' =>'form-control select2js', 'required',
'data-distance-unit' => isset($id) ? optional($data->region)->distance_unit : '',
'id' => 'region_id'
])
}}
{{ Form::label('capacity', __('message.capacity').' *',['class'=>'form-control-label'], false ) }}
{{ Form::number('capacity', old('capacity'),[ 'min' => 1, 'placeholder' => __('message.capacity'),'class' =>'form-control','required']) }}
{{ Form::label('base_fare', __('message.base_fare').' *',['class'=>'form-control-label'], false ) }}
{{ Form::number('base_fare', old('base_fare'), ['class' => 'form-control', 'min' => 0, 'step' => 'any', 'required', 'placeholder' => __('message.base_fare') ]) }}
{{ Form::label('minimum_fare', __('message.minimum_fare').' *',['class'=>'form-control-label'], false ) }}
{{ Form::number('minimum_fare', old('minimum_fare'), ['class' => 'form-control', 'min' => 0, 'step' => 'any', 'required', 'placeholder' => __('message.minimum_fare') ]) }}
{{ Form::label('minimum_distance',__('message.minimum_distance').' *',['class'=>'form-control-label'], false ) }}
{{ Form::number('minimum_distance', old('minimum_distance'), ['class' => 'form-control', 'min' => 0, 'step' => 'any', 'placeholder' => __('message.minimum_distance') ]) }}
{{ Form::label('per_distance',__('message.per_distance').' *',['class'=>'form-control-label'], false ) }}
{{ Form::number('per_distance', old('per_distance'),[ 'min' => 0, 'step' => 'any', 'placeholder' => __('message.per_distance'), 'class' => 'form-control' ]) }}
{{ Form::label('per_minute_drive',__('message.per_minute_drive').' *',['class'=>'form-control-label'],false) }}
{{ Form::number('per_minute_drive', old('per_minute_drive'),[ 'min' => 0, 'step' => 'any', 'placeholder' => __('message.per_minute_drive'), 'class' => 'form-control' ]) }}
{{ Form::label('waiting_time_limit',__('message.waiting_time_limit').'('.__('message.in_minutes').')*',['class'=>'form-control-label'],false) }}
{{ Form::number('waiting_time_limit', old('waiting_time_limit'),[ 'min' => 0, 'step' => 'any', 'placeholder' => __('message.waiting_time_limit'), 'class' => 'form-control' ]) }}
{{ Form::label('per_minute_wait',__('message.per_minute_wait').' *',['class'=>'form-control-label'],false) }}
{{ Form::number('per_minute_wait', old('per_minute_wait'),[ 'min' => 0, 'step' => 'any', 'placeholder' => __('message.per_minute_wait'), 'class' => 'form-control' ]) }}
{{ Form::label('cancellation_fee', __('message.cancellation_fee').' *',['class'=>'form-control-label'], false ) }}
{{ Form::number('cancellation_fee', old('cancellation_fee'), ['class' => 'form-control', 'min' => 0, 'step' => 'any', 'required', 'placeholder' => __('message.cancellation_fee') ]) }}
{{ Form::label('payment_method',__('message.payment_method').' *',['class'=>'form-control-label'],false) }}
{{ Form::select('payment_method',[ 'cash' => __('message.cash') ,'wallet' => __('message.wallet') , 'cash_wallet' => __('message.cash_wallet') ], old('payment_method') ,[ 'class' =>'form-control select2js','required']) }}
{{ Form::label('commission_type',__('message.commission_type'), ['class' => 'form-control-label']) }}
{{ Form::select('commission_type',[ 'fixed' => __('message.fixed') ,'percentage' => __('message.percentage') ], old('commission_type') ,[ 'class' =>'form-control select2js','required']) }}
{{ Form::label('admin_commission', __('message.admin_commission').' *',['class'=>'form-control-label'], false) }}
{{ Form::number('admin_commission', old('admin_commission'),[ 'min' => 0, 'step' => 'any', 'placeholder' => __('message.admin_commission'), 'class' => 'form-control' ]) }}
{{--
{{ Form::label('fleet_commission', __('message.fleet_commission').' *',['class'=>'form-control-label'], false) }}
{{ Form::number('fleet_commission', old('fleet_commission'),[ 'min' => 0, 'step' => 'any', 'placeholder' => __('message.fleet_commission'), 'class' => 'form-control' ]) }}
--}}
{{ Form::label('status',__('message.status').' *',['class'=>'form-control-label'],false) }}
{{ Form::select('status',[ '1' => __('message.active'), '0' => __('message.inactive') ], old('status'), [ 'class' =>'form-control select2js','required']) }}
@if( isset($id) && getMediaFileExit($data, 'service_image'))
@endif
{{ Form::label('description',__('message.description'), ['class' => 'form-control-label']) }}
{{ Form::textarea('description', null, ['class'=>"form-control textarea" , 'rows'=>3 , 'placeholder'=> __('message.description') ]) }}
{{ Form::submit( __('message.save'), ['class'=>'btn btn-md btn-primary float-right']) }}