OwlCyberSecurity - MANAGER
Edit File: settingVIP.blade.php
<form action="{{route('/ajaxVIPGameUpdate')}}/{{$game->id}}/{{$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="{{$game->teamOne}}" required> <input type="hidden" value="{{$game->gameType}}" name="gameType" 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="{{$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="{{$game->teamOneOdds}}"> </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="{{$game->drawOdd}}" placeholder="DRAW ODD">--}} {{--</div>--}} <div class="form-group"> <input class="form-control" name="gameDate" id="matchdate" type="text" placeholder="MATCH DATE *" value="{{$game->gameDate}}" required> </div> <div class="form-group"> <input class="form-control" name="gameTime" id="matchtime" type="text" placeholder="MATCH TIME *" value="{{$game->gameTime}}" required> </div> <div class="form-group"> <select name="league" class="form-control select2" required> @foreach($allleagues->all() as $leagues) <option value="{{$leagues->code}}" @if($game->league==$leagues->code) selected @endif>{{$leagues->code}}</option> @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="{{$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="{{$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="{{$game->teamTwoOdds}}"> </div> </div> </div> </div> <hr> <div class="container-fluid"> <h4 class="text-danger">PREMIUM VIP TIPS</h4> <div class="row"> <div class="col-sm-12"> <div class="form-group col-md-4 bg-danger" style="padding: 10px;"> <div class="row"> <div class="col-sm-4"> <label>MULTIBET 1</label> <select name="multiBetOne" class="form-control"> <option value="Yes" @if($game->multiBetOne=='Yes') selected @endif>Yes</option> <option value="No" @if($game->multiBetOne=='No') selected @endif>No</option> </select> </div> <div class="col-sm-4"> <label>TIP</label> <input type="text" name="multiBetOneTip" value="{{$game->multiBetOneTip}}" class="form-control"> </div> <div class="col-sm-4"> <label>ODD</label> <input type="text" name="multiBetOneOdds" value="{{$game->multiBetOneOdds}}" class="form-control"> </div> </div> </div> <div class="form-group col-md-4 bg-success" style="padding: 10px;"> <div class="row"> <div class="col-sm-4"> <label>MULTIBET 2</label> <select name="multiBetTwo" class="form-control"> <option value="Yes" @if($game->multiBetTwo=='Yes') selected @endif>Yes</option> <option value="No" @if($game->multiBetTwo=='No') selected @endif>No</option> </select> </div> <div class="col-sm-4"> <label>TIP</label> <input type="text" name="multiBetTwoTip" value="{{$game->multiBetTwoTip}}" class="form-control"> </div> <div class="col-sm-4"> <label>ODD</label> <input type="text" name="multiBetTwoOdds" value="{{$game->multiBetTwoOdds}}" class="form-control"> </div> </div> </div> <div class="form-group col-md-4 bg-danger" style="padding: 10px;"> <div class="row"> <div class="col-sm-4"> <label>MULTIBET 3</label> <select name="multiBetThree" class="form-control"> <option value="Yes" @if($game->multiBetThree=='Yes') selected @endif>Yes</option> <option value="No" @if($game->multiBetThree=='No') selected @endif>No</option> </select> </div> <div class="col-sm-4"> <label>TIP</label> <input type="text" name="multiBetThreeTip" value="{{$game->multiBetThreeTip}}" class="form-control"> </div> <div class="col-sm-4"> <label>ODD</label> <input type="text" name="multiBetThreeOdds" value="{{$game->multiBetThreeOdds}}" class="form-control"> </div> </div> </div> </div> </div> </div> <div class="container-fluid"> <hr> <div class="form-group col-md-6 bg-danger" style="padding: 10px;"> <div class="row"> <div class="col-sm-12"><h4>SUPER VIP TIPS</h4></div> <div class="col-sm-4"> <label>SUPER TIP</label> <select name="super" class="form-control"> <option value="Yes" @if($game->super=='Yes') selected @endif>Yes</option> <option value="No" @if($game->super=='No') selected @endif>No</option> </select> </div> <div class="col-sm-4"> <label>PREDICTION</label> <input type="text" name="superTip" value="{{$game->superTip}}" class="form-control"> </div> <div class="col-sm-4"> <label>ODD</label> <input type="text" name="superOdds" value="{{$game->superOdds}}" class="form-control"> </div> </div> </div> <div class="form-group col-md-6 bg-success" style="padding: 10px;"> <div class="row"> <div class="col-sm-12"><h4>SUPER VIP TIPS</h4></div> <div class="col-sm-6"> <label>HT/FT</label> <select name="HTFT" class="form-control"> <option value="1/1" @if($game->HTFT=='1/1') selected @endif>1/1</option> <option value="1/X" @if($game->HTFT=='1/X') selected @endif>1/X</option> <option value="1/2" @if($game->HTFT=='1/2') selected @endif>1/2</option> <option value="X/1" @if($game->HTFT=='X/1') selected @endif>X/1</option> <option value="X/2" @if($game->HTFT=='X/2') selected @endif>X/2</option> <option value="X/X" @if($game->HTFT=='X/X') selected @endif>X/X</option> <option value="2/1" @if($game->HTFT=='2/1') selected @endif>2/1</option> <option value="2/2" @if($game->HTFT=='2/2') selected @endif>2/2</option> <option value="2/X" @if($game->HTFT=='2/X') selected @endif>2/X</option> <option value="No" @if($game->HTFT=='No') selected @endif>No</option> </select> </div> <div class="col-sm-6"> <label>ODD</label> <input type="text" name="HTFTOdds" value="{{$game->HTFTOdds}}" class="form-control"> </div> </div> </div> <div class="row"> <hr> <div class="form-group col-md-6 bg-success" style="padding: 10px;"> <h4 class="text-danger">BANKROLL VIP TIPS</h4> <div class="row"> <div class="col-sm-4"> <label>BANKROLL TIP</label> <select name="bankroll" class="form-control"> <option value="Yes" @if($game->bankroll=='Yes') selected @endif>Yes</option> <option value="No" @if($game->bankroll=='No') selected @endif>No</option> </select> </div> <div class="col-sm-4"> <label>TIP</label> <input type="text" name="bankrollTip" value="{{$game->bankrollTip}}" class="form-control"> </div> <div class="col-sm-4"> <label>ODD</label> <input type="text" name="bankrollOdds" value="{{$game->bankrollOdds}}" class="form-control"> </div> </div> </div> <div class="form-group col-md-6 bg-danger" style="padding: 10px;"> <h4 class="text-danger">SMART VIP TIPS</h4> <div class="row"> <div class="col-sm-4"> <label>SMART TIP</label> <select name="smart" class="form-control"> <option value="Yes" @if($game->smart=='Yes') selected @endif>Yes</option> <option value="No" @if($game->smart=='No') selected @endif>No</option> </select> </div> <div class="col-sm-4"> <label>TIP</label> <input type="text" name="smartTip" value="{{$game->smartTip}}" class="form-control"> </div> <div class="col-sm-4"> <label>ODD</label> <input type="text" name="smartOdds" value="{{$game->smartOdds}}" class="form-control"> </div> </div> </div> </div> <div class="row"> <hr> <div class="form-group col-md-6 bg-success" style="padding: 10px;"> <h4 class="text-danger">CORRECT SCORE VIP TIPS</h4> <div class="row"> <div class="col-sm-4"> <label>CS TIP</label> <select name="correct_score" class="form-control"> <option value="Yes" @if($game->correct_score=='Yes') selected @endif>Yes</option> <option value="No" @if($game->correct_score=='No') selected @endif>No</option> </select> </div> <div class="col-sm-4"> <label>TIP</label> <input type="text" name="correct_scoreTip" value="{{$game->correct_scoreTip}}" class="form-control"> </div> <div class="col-sm-4"> <label>ODD</label> <input type="text" name="correct_scoreOdds" value="{{$game->correct_scoreOdds}}" class="form-control"> </div> </div> </div> <div class="form-group col-md-6 bg-danger" style="padding: 10px;"> <h4 class="text-danger">INVESTMENT VIP TIPS</h4> <div class="row"> <div class="col-sm-4"> <label>INVESTMENT TIP</label> <select name="superInvestment" class="form-control"> <option value="Yes" @if($game->superInvestment=='Yes') selected @endif>Yes</option> <option value="No" @if($game->superInvestment=='No') selected @endif>No</option> </select> </div> <div class="col-sm-4"> <label>TIP</label> <input type="text" name="superInvestmentTip" value="{{$game->superInvestmentTip}}" class="form-control"> </div> <div class="col-sm-4"> <label>ODD</label> <input type="text" name="superInvestmentOdds" value="{{$game->superInvestmentOdds}}" class="form-control"> </div> </div> </div> </div> <div class="form-group col-md-12" style="padding: 10px;"> <div class="row"> <div class="col-sm-12"> <h4 class="text-danger">JACKPOT VIP TIPS</h4> </div> <div class="form-group col-md-6 bg-success" style="padding: 10px;"> <div class="row"> <div class="col-sm-4"> <label class="text-primary">SPORTPESA JACKPOT</label> <select name="sportpesa" class="form-control"> <option value="Yes" @if($game->sportpesa=='Yes') selected @endif>Yes</option> <option value="No" @if($game->sportpesa=='No') selected @endif>No</option> </select> </div> <div class="col-sm-4"> <label>TIP</label> <input type="text" name="sportpesaTip" value="{{$game->sportpesaTip}}" class="form-control"> </div> <div class="col-sm-4"> <label>ODD</label> <input type="text" name="sportpesaOdds" value="{{$game->sportpesaOdds}}" class="form-control"> </div> </div> </div> <div class="form-group col-md-6 bg-danger" style="padding: 10px;"> <div class="row"> <div class="col-sm-4"> <label class="text-primary">MBET 12 JACKPOT</label> <select name="mbet" class="form-control"> <option value="Yes" @if($game->mbet=='Yes') selected @endif>Yes</option> <option value="No" @if($game->mbet=='No') selected @endif>No</option> </select> </div> <div class="col-sm-4"> <label>TIP</label> <input type="text" name="mbetTip" value="{{$game->mbetTip}}" class="form-control"> </div> <div class="col-sm-4"> <label>ODD</label> <input type="text" name="mbetOdds" value="{{$game->mbetOdds}}" class="form-control"> </div> </div> </div> </div> </div> </div> <div class="row"> {!! csrf_field() !!} <div class="col-sm-12"> <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> </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>