{{ Form::label('subject',__('message.subject').' *',['class'=>'form-control-label'], false ) }}
{{ Form::text('subject',old('subject'),['placeholder' => __('message.subject'),'class' =>'form-control','required']) }}
{{ Form::label('ride_request_id', __('message.riderequest'), ['class' => 'form-control-label']) }}
{{ Form::select('ride_request_id', isset($id) ? [ $data->ride_request_id => '#'.$data->ride_request_id ] : [] , old('ride_request_id') , [
'data-ajax--url' => route('ajax-list', [ 'type' => 'riderequest' ]),
'data-placeholder' => __('message.select_field', [ 'name' => __('message.riderequest') ]),
'class' =>'form-control select2js', 'required',
'id' => 'ride_request_id'
])
}}
{{ Form::label('complaint_by',__('message.complaint_by').' *',['class'=>'form-control-label'],false) }}
{{ Form::select('complaint_by',[ 'rider' => __('message.rider') ,'driver' => __('message.driver') ], old('complaint_by') ,[ 'class' =>'form-control select2js','required']) }}
{{ Form::label('status',__('message.status'), ['class' => 'form-control-label']) }}
{{ Form::select('status',[ 'pending' => __('message.pending'), 'resolved' => __('message.resolved'), 'investigation' => __('message.investigation') ], old('status') ,[ 'class' =>'form-control select2js','required']) }}
{{ 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']) }}