 
 <?php $__env->startSection('content'); ?>
   <div class="container">
        <div class="justify-content-center">
            <div class="">
                <div class="card">
                    <div class="card-header">Reverse Game Winner</div>
                    <div class="card-body">
                        <?php if($errors->any()): ?>
                            <div class="alert alert-danger">
                                <ul>
                                    <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <li><?php echo e($error); ?></li>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </ul>
                            </div>
                        <?php endif; ?>
                         <form role="form" method="post" onsubmit="return validateForm('addsstatus')" class="addsstatus" action="<?php echo e(url('admin/gamwinnerrevers/'.$store->id)); ?>" autocomplete="off" enctype="multipart/form-data">
                             <?php echo csrf_field(); ?>
                       
                        <div class="row">
                            <div class="col-md-6">
                             <div class="form-group">
                                <label for="title"> Game Name<span class="require label-mandatory">*</span></label>
                                 <span class="form-control bit_place">
                                    <?php echo e($store->name); ?>

                                 </span>
                                 
                                  
                                
                            </div>
                          </div>
                           <div class="col-md-6">
                             <div class="form-group">
                                <label for="title"> Open Time<span class="require label-mandatory">*</span></label>
                                 <span class="form-control bit_place">
                                     <?php echo e(isset($store->storesDay) ? timeShow($store->storesDay->opent_time) : ''); ?>

                                 </span>
                                
                            </div>
                          </div>
                           <div class="col-md-6">
                             <div class="form-group">
                                <label for="title"> Result Number<span class="require label-mandatory">*</span></label>
                                
                                  <input type="text" 
       class="form-control bit_place"
       name="result" 
       id="result"
       placeholder="xxx"
       maxlength="3"
       minlength="3"
       required>
                                  
                                
                            </div>
                            <b>Single Digit:-</b><span id="digit_sum"></span>
                          </div>
                           </div>
                      
                           
                            <div class="form-group">

                                <button type="submit"  class="btn btn-primary" >Submit</button>
                            </div>

                        </form>
                        <div id="compareform">
                           
                        </div>
                        
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script>
document.getElementById("result").addEventListener("input", function () {
    let val = this.value.replace(/\D/g, ""); // keep only digits

    let sum = 0;
    for (let char of val) {
        sum += parseInt(char);
    }

    let lastDigit = sum % 10; // get last digit

    document.getElementById("digit_sum").innerText = val ? lastDigit : "";
});
</script>

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

 
<?php echo $__env->make('admin.layouts.main-layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/a1gamess/public_html/admin.a1gamess.com/resources/views/admin/game-winner/reverse.blade.php ENDPATH**/ ?>