
<?php $__env->startSection('title', 'Review'); ?>
<?php $__env->startPush('css'); ?>
<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>

    <!-- Main Content -->
    <div class="main-content">
        <section class="section">
            <div class="col-12 section-header">
                <div class="col-6">
                    <h1> Edit </h1>
                </div>

            </div>
            <?php if($errors->any()): ?>
                <div class="col-sm-12">
                    <div class="alert  alert-warning alert-dismissible fade show" role="alert">
                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span>
                                <p><?php echo e($error); ?></p>
                            </span>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                    </div>
                </div>
            <?php endif; ?>

            <?php echo $__env->make('flash-message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

            <div class="section-body">
                <div class="col-12">
                    <div class="row">
                        <div class="col-lg-5">

                            <form method="POST" action="<?php echo e(route('reviews.update', $id)); ?>" id="editForm"
                                enctype="multipart/form-data">
                                <?php echo e(method_field('PATCH')); ?>

                                <?php echo e(csrf_field()); ?>

                                <div class="row">
                                    <div class="col-lg-12">



                                        <div class="form-group">
                                            <label>Person Name<code>*</code></label>
                                            <input type="text" name="name" class="form-control form-control-lg"
                                                value="<?php echo e($review->name); ?>">
                                        </div>



                                        <div class="form-group">
                                            <label>Review<code>*</code></label>
                                            <input type="text" name="review" class="form-control form-control-lg"
                                                value="<?php echo e($review->review); ?>">
                                        </div>




                                        

                                    </div>


                                </div>



                        </div>

                        <div class="col-lg-5">
                            <div class="form-group">
                                <label>Rating<code>*</code></label>
                                <input type="number" name="rating" min="1" max="5" step="0.01"
                                    class="form-control form-control-lg" value="<?php echo e($review->rating); ?>">
                            </div>

                            


                        </div>

                    </div>

                    <div class="card-footer text-right">
                        <button class="btn btn-primary mr-1" type="submit">Update</button>

                    </div>
                    </form>
                </div>
            </div>
    </div>
    </section>


    <!-- End -->
    </div>



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

<?php $__env->startSection('extra-js'); ?>
    <script type="text/javascript">
        function myFunction() {
            // Get the checkbox
            var checkBox = document.getElementById("main_menu");
            console.log(checkBox);
            if (checkBox.checked == true) {
                checkBox.value = 1;
            } else {
                checkBox.value = 0;
            }

        }

        function myFunction2() {
            // Get the checkbox
            var checkBox2 = document.getElementById("home_page");
            console.log(checkBox2);
            if (checkBox2.checked == true) {
                checkBox2.value = 1;
            } else {
                checkBox2.value = 0;
            }

        }
    </script>


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

<?php echo $__env->make('layouts.app_admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\xampp\htdocs\hats-off-moving\resources\views/reviews/edit.blade.php ENDPATH**/ ?>