{{ $pageTitle ?? trans('messages.list') }}
@if($auth_user->can('providerdocument list')) {{ __('messages.back') }} @endif
{{ Form::model($rating_review,['method' => 'POST','route'=>'ratingreview.store', 'enctype'=>'multipart/form-data', 'data-toggle'=>"validator" ,'id'=>'rating_review'] ) }} {{ Form::hidden('id') }}
{{ Form::label('name', __('messages.select_name',[ 'select' => __('messages.customer') ]).' *',['class'=>'form-control-label'],false) }}
{{ Form::select('customer_id', [optional($rating_review->customer)->id => optional($rating_review->customer)->display_name], optional($rating_review->customer)->id, [ 'class' => 'select2js form-group customer', 'required', 'data-placeholder' => __('messages.select_name',[ 'select' => __('messages.customer') ]), 'data-ajax--url' => route('ajax-list', ['type' => 'user']), ]) }}
{{ Form::label('service_id', __('messages.select_name',[ 'select' => __('messages.service') ]).' *',['class'=>'form-control-label'],false) }}
{{ Form::select('service_id', [optional($rating_review->service)->id => optional($rating_review->service)->name], optional($rating_review->service)->id, [ 'class' => 'select2js form-group service', 'required', 'data-placeholder' => __('messages.select_name',[ 'select' => __('messages.service') ]), 'data-ajax--url' => route('ajax-list', ['type' => 'service']), ]) }}
{{ Form::label('rating',trans('messages.rating').' *',['class'=>'form-control-label'],false) }} {{ Form::select('rating',['1' => 1 , '2' => 2,'3' => 3 , '4' => 4, '5' => 5],old('rating'),[ 'id' => 'rating' ,'class' =>'form-control select2js','required']) }}
{{ Form::label('review',__('messages.review').' *',['class'=>'form-control-label'], false ) }} {{ Form::textarea('review', null, ['class'=>"form-control textarea" , 'rows'=>3 , 'placeholder'=> __('messages.description') ]) }}
{{ Form::submit( trans('messages.save'), ['class'=>'btn btn-md btn-primary float-right']) }} {{ Form::close() }}