<?php $__env->startSection('content'); ?>
    <div class="side-title">
        <h3><?php echo e($head ?? ''); ?></h3>
    </div>

    <div class="border-item">
        <form class="form-row">
            <div class="form-group col-lg-4">
                <label><?php echo e(meta('user_id', getCurrentLocale()) ?? __('comments.user_id')); ?> </label>
                <input type="text" class="form-control" value='<?php echo e($evaluate->user_name); ?>'/>
            </div>
            <div class="form-group col-lg-4">
                <label><?php echo e(meta('email', getCurrentLocale()) ?? __('comments.email')); ?> </label>
                <input type="text" class="form-control" value='<?php echo e($evaluate->user_email); ?>'/>
            </div>
            <div class="form-group col-lg-3">
                <label><?php echo e(meta('phone', getCurrentLocale()) ?? __('comments.phone')); ?> </label>
                <input type="text" class="form-control" value='<?php echo e($evaluate->user_phone); ?>'/>
            </div>
            <div class="form-group col-lg-1">
                <label><?php echo e(__('evaluates.status')); ?></label>
                <a style="cursor: pointer" class="active_evaluate icon form-control text-center" data-href="<?php echo e(route('evaluates.activeEvaluate', $evaluate->id)); ?>">
                    <i class="fa fa-2x <?php echo e($evaluate->status ? 'fa-check text-success' : 'fa-times text-danger'); ?>"></i>
                </a>
            </div>

            <?php if($evaluate->hotel_id): ?>
                <div class="form-group col-lg-12">
                    <label><?php echo e(meta('hotel_id', getCurrentLocale()) ?? __('comments.hotel_id')); ?> </label>
                    <input type="text" class="form-control" value='<?php echo e($evaluate->hotel_name); ?>'/>
                </div>
            <?php endif; ?>
            <?php if($evaluate->umrah_trip_id): ?>
                <div class="form-group col-lg-12">
                    <label><?php echo e(meta('umrah_trip_id', getCurrentLocale()) ?? __('comments.umrah_trip_id')); ?> </label>
                    <input type="text" class="form-control" value='<?php echo e($evaluate->umrah_name); ?>'/>
                </div>
            <?php endif; ?>




            <div class="form-group col-lg-12">
                <label><?php echo e(meta('comment', getCurrentLocale()) ?? __('comments.comment')); ?> </label>
                <textarea class="form-control"><?php echo e($evaluate->comment); ?></textarea>
            </div>

            <div class="text-center mt-5 col-12">
                <a href="<?php echo e(route('evaluates.index')); ?>" class="butn"><span><?php echo e(__('evaluates.head')); ?></span></a>
            </div>

        </form>
    </div>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('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>
<?php $__env->stopSection(); ?>




<?php echo $__env->make('admin.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\nosk\resources\views/admin/evaluates/form.blade.php ENDPATH**/ ?>