@extends('admin.layouts.container')

@section('content')
    <div class="side-title">
        <h3>{{$head ?? '' }}</h3>
    </div>

    <div class="border-item">
        <form class="form-row">
            <div class="form-group col-lg-3">
                <label>{{ meta('consulting_id', $local) ?? __('consultingEvaluates.consulting_id') }} </label>
                <input type="text" class="form-control" value='{{ $consultingEvaluate->consulting_request_id }}'/>
            </div>
            <div class="form-group col-lg-3">
                <label>{{ meta('consulting_type', $local) ?? __('consultingEvaluates.consulting_type') }} </label>
                <input type="text" class="form-control" value='{{ __('consultingEvaluates.'.$consultingEvaluate->consulting_type) }}'/>
            </div>
            <div class="form-group col-lg-3">
                <label>{{ meta('consulting_way', $local) ?? __('consultingEvaluates.consulting_way') }} </label>
                <input type="text" class="form-control" value='{{ __('consultingEvaluates.'.$consultingEvaluate->consulting_way)}}'/>
            </div>
            <div class="form-group col-lg-3">
                <label>{{ meta('user_name', $local) ?? __('consultingEvaluates.user_name') }} </label>
                <input type="text" class="form-control" value='{{ $consultingEvaluate->user_name }}'/>
            </div>
            <div class="form-group col-lg-3">
                <label>{{ meta('user_email', $local) ?? __('consultingEvaluates.user_email') }} </label>
                <input type="text" class="form-control" value='{{ $consultingEvaluate->user_email }}'/>
            </div>
            <div class="form-group col-lg-3">
                <label>{{ meta('user_phone', $local) ?? __('consultingEvaluates.user_phone') }} </label>
                <input type="text" class="form-control" value='{{ $consultingEvaluate->user_phone }}'/>
            </div>
            <div class="form-group col-lg-3">
                <label>{{ meta('consulting_date', $local) ?? __('consultingEvaluates.consulting_date') }} </label>
                <input type="text" class="form-control" value='{{ $consultingEvaluate->consulting_date }}'/>
            </div>
            <div class="form-group col-lg-3">
                <label>{{ meta('consulting_time', $local) ?? __('consultingEvaluates.consulting_time') }} </label>
                <input type="text" class="form-control" value='{{ $consultingEvaluate->consulting_time }}'/>
            </div>
            <div class="form-group col-lg-3">
                <label>{{ meta('evaluate_average', $local) ?? __('consultingEvaluates.evaluate_average') }} </label>
                <input type="text" class="form-control" value='{{ $consultingEvaluate->evaluate_average }}'/>
            </div>
{{--            <div class="form-group col-lg-1">--}}
{{--                <label>{{ __('consultingEvaluates.status') }}</label>--}}
{{--                <a style="cursor: pointer" class="active_evaluate icon form-control text-center" data-href="{{route('consultingEvaluates.activeEvaluate', $consultingEvaluate->id)}}">--}}
{{--                    <i class="fa fa-2x {{$consultingEvaluate->status ? 'fa-check text-success' : 'fa-times text-danger'}}"></i>--}}
{{--                </a>--}}
{{--            </div>--}}
            <div class="form-group col-lg-12">
                <label>{{ meta('comment', $local) ?? __('consultingEvaluates.comment') }} </label>
                <textarea class="form-control">{{ $consultingEvaluate->comment}}</textarea>
            </div>

            <div class="text-center mt-5 col-12">
                <a href="{{route('consultingEvaluates.index')}}" class="butn"><span>{{ __('consultingEvaluates.head') }}</span></a>
            </div>

        </form>
    </div>

@endsection

@section('inner_js')
{{--    <script>--}}
{{--        $(document).ready(function () {--}}
{{--            $(document).on('click', '.active_evaluate' , async function (e) {--}}
{{--                e.preventDefault();--}}
{{--                let url = $(this).data('href'),--}}
{{--                    method = 'get';--}}

{{--                const response=await ajax({--}}
{{--                    url,--}}
{{--                    dataType: 'json',--}}
{{--                    method,--}}
{{--                });--}}
{{--                if (response.message) {--}}
{{--                    $(this).children('i').toggleClass('fa-check text-success fa-times text-danger')--}}

{{--                }--}}
{{--            });--}}
{{--        });--}}

{{--    </script>--}}
@endsection



