OwlCyberSecurity - MANAGER
Edit File: 2cb177353dfcfc4f917d04406bfce341afb98f87.php
<form action="<?php echo e(route('/ajaxGameUpdate')); ?>/<?php echo e($game->id); ?>/<?php echo e($datain); ?>" method="POST" id="updateForm"> <div class="container-fluid"> <div class="col-xs-12"> <div class="col-md-5 col-xs-12" style="background: whitesmoke; padding: 15px;"> <div class="form-group col-xs-12"> <input type="text" name="teamOne" class="form-control" placeholder="TEAM ONE *" value="<?php echo e($game->teamOne); ?>" required> </div> <div class="form-group col-md-6 col-xs-12"> <label for="team1odd">FORM</label> <input type="text" name="teamOneForm" placeholder="eg. WWWLD" class="form-control" value="<?php echo e($game->teamOneForm); ?>" maxlength="5"> </div> <div class="form-group col-md-6 col-xs-12"> <label for="team1odd">ODDS *</label> <input type="text" name="teamOneOdds" placeholder="eg. 1.5" class="form-control" value="<?php echo e($game->teamOneOdds); ?>" required> </div> </div> <div class="col-md-2 col-xs-12" style="margin: 10px 0px; background: grey; border-radius: 0px 0px 8px 8px;"><center><span style="padding: 5px 10px; background: grey; color: white; border-radius: 100px; margin-top: -30px;">VS</span></center> <br> <div class="form-group"> <input class="form-control" name="drawOdd" type="text" value="<?php echo e($game->drawOdd); ?>" placeholder="DRAW ODD"> </div> <div class="form-group"> <input class="form-control" name="matchDate" id="matchdate" type="text" placeholder="MATCH DATE *" value="<?php echo e($game->gameDate); ?>" required> </div> <div class="form-group"> <input class="form-control" name="matchTime" id="matchtime" type="text" placeholder="MATCH TIME *" value="<?php echo e($game->gameTime); ?>" required> </div> <div class="form-group"> <select name="league" class="form-control select2" required> <?php foreach($allleagues->all() as $leagues): ?> <option value="<?php echo e($leagues->code); ?>" <?php if($game->league==$leagues->code): ?> selected <?php endif; ?>><?php echo e($leagues->code); ?></option> <?php endforeach; ?> </select> </div> </div> <div class="col-md-5 col-xs-12" style="background: whitesmoke; padding: 15px;"> <div class="form-group col-xs-12"> <input type="text" name="teamTwo" class="form-control" placeholder="TEAM TWO *" value="<?php echo e($game->teamTwo); ?>" required> </div> <div class="form-group col-md-6 col-xs-12"> <label for="team1odd">FORM</label> <input type="text" name="teamTwoForm" placeholder="eg. WWWLD" class="form-control" value="<?php echo e($game->teamTwoForm); ?>" maxlength="5"> </div> <div class="form-group col-md-6 col-xs-12"> <label for="team1odd">ODDS *</label> <input type="text" name="teamTwoOdds" placeholder="eg. 1.5" class="form-control" value="<?php echo e($game->teamTwoOdds); ?>" required> </div> </div> </div> </div> <hr> <div class="container-fluid"> <div class="form-group col-md-4"> <label>TODAY'S FREE PICK</label> <select name="freePick" class="form-control"> <option value="None">*-*-*-*-*-*-*-*-*-*</option> <option value="Yes" <?php if($game->freePick=='Yes'): ?> selected <?php endif; ?>>Yes</option> <option value="No" <?php if($game->freePick=='No'): ?> selected <?php endif; ?>>No</option> </select> <small class="text-danger">If YES, this game will show on homepage under Today's Free Pick</small> </div> <div class="form-group col-md-4"> <label>UPCOMING GAME?</label> <select name="upcomingGame" class="form-control"> <option value="None">*-*-*-*-*-*-*-*-*-*</option> <option value="Yes" <?php if($game->upcomingGame=='Yes'): ?> selected <?php endif; ?>>Yes</option> <option value="No" <?php if($game->upcomingGame=='No'): ?> selected <?php endif; ?>>No</option> </select> <small class="text-danger">If YES, this game will show on homepage under Upcoming Games</small> </div> <div class="form-group col-md-4"> <label>FULL TIME RECOMMENDATION *</label> <input type="text" name="FTRecommendation" class="form-control" required value="<?php echo e($game->FTRecommendation); ?>"> <small class="text-danger">Value here will show for Free Pick & Upcoming Game on homepage</small> </div> <div class="form-group col-md-4"> <label>ACTUAL POINT/ODD</label> <input type="text" name="actualPoint" class="form-control" value="<?php echo e($game->actualPoint); ?>"> </div> <div class="form-group col-md-4"> <label>2+ MAX STAKE</label> <select name="twoMaxStake" class="form-control"> <option value="Yes" <?php if($game->twoMaxStake=='Yes'): ?> selected <?php endif; ?>>Yes</option> <option value="No" <?php if($game->twoMaxStake=='No'): ?> selected <?php endif; ?>>No</option> </select> </div> <div class="form-group col-md-4"> <label>3+ MAX STAKE</label> <select name="threeMaxStake" class="form-control"> <option value="Yes" <?php if($game->threeMaxStake=='Yes'): ?> selected <?php endif; ?>>Yes</option> <option value="No" <?php if($game->threeMaxStake=='No'): ?> selected <?php endif; ?>>No</option> </select> </div> <div class="form-group col-md-4"> <label>DAILY DOUBLE</label> <select name="dailyDouble" class="form-control"> <option value="Yes" <?php if($game->dailyDouble=='Yes'): ?> selected <?php endif; ?>>Yes</option> <option value="No" <?php if($game->dailyDouble=='No'): ?> selected <?php endif; ?>>No</option> </select> </div> <div class="form-group col-md-4"> <label>DAILY TREBLE</label> <select name="dailyTreble" class="form-control"> <option value="Yes" <?php if($game->dailyTreble=='Yes'): ?> selected <?php endif; ?>>Yes</option> <option value="No" <?php if($game->dailyTreble=='No'): ?> selected <?php endif; ?>>No</option> </select> </div> <div class="form-group col-md-4"> <label>PICK OF THE DAY</label> <select name="pickDay" class="form-control"> <option value="Yes" <?php if($game->pickDay=='Yes'): ?> selected <?php endif; ?>>Yes</option> <option value="No" <?php if($game->pickDay=='No'): ?> selected <?php endif; ?>>No</option> </select> </div> <div class="form-group col-md-4"> <label>DAILY SUPER SINGLES</label> <select name="superSingles" class="form-control"> <option value="Yes" <?php if($game->superSingles=='Yes'): ?> selected <?php endif; ?>>Yes</option> <option value="No" <?php if($game->superSingles=='No'): ?> selected <?php endif; ?>>No</option> </select> </div> <div class="form-group col-md-4"> <label>ACCUMULATOR TIPS</label> <select name="accumulatorTips" class="form-control"> <option value="None">*-*-*-*-*-*-*-*-*-*</option> <option value="Yes" <?php if($game->accumulatorTips=='Yes'): ?> selected <?php endif; ?>>Yes</option> <option value="No" <?php if($game->accumulatorTips=='No'): ?> selected <?php endif; ?>>No</option> </select> </div> <div class="form-group col-md-4"> <label>1.5 GOALS</label> <select name="oneDotFive" class="form-control"> <option value="None">*-*-*-*-*-*-*-*-*-*</option> <option value="Over 1.5" <?php if($game->oneDotFive=='Over 1.5'): ?> selected <?php endif; ?>>Over 1.5</option> <option value="Under 1.5" <?php if($game->oneDotFive=='Under 1.5'): ?> selected <?php endif; ?>>Under 1.5</option> </select> </div> <div class="form-group col-md-4"> <label>2.5 GOALS</label> <select name="twoDotFive" class="form-control"> <option value="None">*-*-*-*-*-*-*-*-*-*</option> <option value="Over 2.5" <?php if($game->twoDotFive=='Over 2.5'): ?> selected <?php endif; ?>>Over 2.5</option> <option value="Under 2.5" <?php if($game->twoDotFive=='Under 2.5'): ?> selected <?php endif; ?>>Under 2.5</option> </select> </div> <div class="form-group col-md-4"> <label>3.5 GOALS</label> <select name="threeDotFive" class="form-control"> <option value="None">*-*-*-*-*-*-*-*-*-*</option> <option value="Over 3.5" <?php if($game->threeDotFive=='Over 3.5'): ?> selected <?php endif; ?>>Over 3.5 Goals</option> <option value="Under 3.5" <?php if($game->threeDotFive=='Under 3.5'): ?> selected <?php endif; ?>>Under 3.5 Goals</option> </select> </div> <div class="form-group col-md-4"> <label>BOTH TEAM TO SCORE?</label> <select name="BTTS" class="form-control"> <option value="None">*-*-*-*-*-*-*-*-*-*</option> <option value="Yes" <?php if($game->BTTS=='Yes'): ?> selected <?php endif; ?>>Yes</option> <option value="No" <?php if($game->BTTS=='No'): ?> selected <?php endif; ?>>No</option> </select> </div> <div class="form-group col-md-4"> <label>MID-WEEK JACKPOT</label> <select name="jackPot" class="form-control"> <option value="Yes" <?php if($game->jackPot=='Yes'): ?> selected <?php endif; ?>>Yes</option> <option value="No" <?php if($game->jackPot=='No'): ?> selected <?php endif; ?>>No</option> </select> </div> <div class="form-group col-md-4"> <label>MEGA JACKPOT</label> <select name="megaJackpot" class="form-control"> <option value="Yes" <?php if($game->megaJackpot=='Yes'): ?> selected <?php endif; ?>>Yes</option> <option value="No" <?php if($game->megaJackpot=='No'): ?> selected <?php endif; ?>>No</option> </select> </div> <div class="form-group col-md-4"> <label>HALTIME/FULLTIME</label> <select name="HTFT" class="form-control"> <option value="None">*-*-*-*-*-*-*-*-*-*</option> <option value="1/1" <?php if($game->HTFT=='1/1'): ?> selected <?php endif; ?>>1/1</option> <option value="1/X" <?php if($game->HTFT=='1/X'): ?> selected <?php endif; ?>>1/X</option> <option value="1/2" <?php if($game->HTFT=='1/2'): ?> selected <?php endif; ?>>1/2</option> <option value="X/1" <?php if($game->HTFT=='X/1'): ?> selected <?php endif; ?>>X/1</option> <option value="X/2" <?php if($game->HTFT=='X/2'): ?> selected <?php endif; ?>>X/2</option> <option value="X/X" <?php if($game->HTFT=='X/X'): ?> selected <?php endif; ?>>X/X</option> <option value="2/1" <?php if($game->HTFT=='2/1'): ?> selected <?php endif; ?>>2/1</option> <option value="2/2" <?php if($game->HTFT=='2/2'): ?> selected <?php endif; ?>>2/2</option> <option value="2/X" <?php if($game->HTFT=='2/X'): ?> selected <?php endif; ?>>2/X</option> </select> </div> <div class="form-group col-md-4"> <label>CORRECT SCORE</label> <input type="text" name="correctScore" class="form-control" placeholder="leave blank if nothing" value="<?php echo e($game->correctScore); ?>"> </div> <div class="form-group col-md-4"> <label>DOUBLE CHANCE</label> <select name="doubleChance" class="form-control"> <option value="None">*-*-*-*-*-*-*-*-*-*</option> <option value="1x" <?php if($game->doubleChance=='1x'): ?> selected <?php endif; ?>>1x</option> <option value="2x" <?php if($game->doubleChance=='2x'): ?> selected <?php endif; ?>>2x</option> <option value="12" <?php if($game->doubleChance=='12'): ?> selected <?php endif; ?>>12</option> </select> </div> <div class="form-group col-md-4"> <label>1ST HALF RESULT?</label> <select name="firstHalfResult" class="form-control"> <option value="None">*-*-*-*-*-*-*-*-*-*</option> <option value="Home" <?php if($game->firstHalfResult=='Home'): ?> selected <?php endif; ?>>Home</option> <option value="Draw" <?php if($game->firstHalfResult=='Draw'): ?> selected <?php endif; ?>>Draw</option> <option value="Away" <?php if($game->firstHalfResult=='Away'): ?> selected <?php endif; ?>>Away</option> </select> </div> <div class="form-group col-md-4"> <label>CUSTOM TIPS</label> <input type="text" class="form-control" name="customTips" value="<?php echo e($game->customTips); ?>"> </div> <?php echo csrf_field(); ?> <div id="settingstatus" class="col-xs-6"></div> <div class="form-group col-sm-12"> <button class="btn btn-md btn-success" name="submit" id="submitsetting">UPDATE PREDICTION</button> </div> </div> </form> <script> $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $(document).ready(function () { $('#updateForm').submit(function (e) { e.preventDefault(); $('#submitsetting').prop('disabled', true).html("UPDATING PREDICTION"); var url = $(this).attr('action'); var dataString = $(this).serialize(); console.log(dataString); $.ajax({ type: "POST", url: url, data: dataString, dataType: "JSON", success: function(data){ if (data.status == 1) { $('#submitsetting').prop('disabled', false).html("UPDATE PREDICTION"); swal(data.encounters, '', 'warning'); } else{ swal(data.encounters, '', 'success'); $('#updategame').modal('hide'); } } }); }); }); </script>