<?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($comment->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($comment->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($comment->user_phone); ?>'/>
            </div>
            <div class="form-group col-lg-1">
                <label><?php echo e(__('comments.status')); ?></label>
                <a style="cursor: pointer" class="active_comment icon form-control text-center" data-href="<?php echo e(route('comments.activeComment', $comment->id)); ?>">
                    <i class="fa fa-2x <?php echo e($comment->status ? 'fa-check text-success' : 'fa-times text-danger'); ?>"></i>
                </a>
            </div>

            <?php if($comment->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($comment->hotel_name); ?>'/>
                </div>
            <?php endif; ?>
            <?php if($comment->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($comment->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($comment->comment); ?></textarea>
            </div>
        </form>
    </div>

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

<?php $__env->startSection('inner_js'); ?>
    <script>
        $(document).ready(function () {
            $(document).on('click', '.active_comment' , 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/comments/form.blade.php ENDPATH**/ ?>