    <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); ?>">
                    </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>
                    <?php /*<div class="form-group">*/ ?>
                        <?php /*<input class="form-control" name="drawOdd" type="text" value="<?php echo e($game->drawOdd); ?>" placeholder="DRAW ODD">*/ ?>
                    <?php /*</div>*/ ?>
                    <div class="form-group">
                        <input class="form-control" name="gameDate" id="matchdate" type="text" placeholder="MATCH DATE *" value="<?php echo e($game->gameDate); ?>" required>
                    </div>
                    <div class="form-group">
                        <input class="form-control" name="gameTime" 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); ?>">
                    </div>
                </div>
            </div>
        </div>
<hr>
<div class="container-fluid">
    <div class="form-group col-md-6">
        <label>FREE EXPERT TIPS</label>
        <select name="freePick" class="form-control">
            <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 Free Punter's Picks</small>
    </div>

    <?php /*<div class="form-group col-md-4">*/ ?>
        <?php /*<label>UPCOMING PICKS?</label>*/ ?>
        <?php /*<select name="upcomingGame" class="form-control">*/ ?>
            <?php /*<option value="Yes" <?php if($game->upcomingGame=='Yes'): ?> selected <?php endif; ?>>Yes</option>*/ ?>
            <?php /*<option value="No" <?php if($game->upcomingGame=='No'): ?> selected <?php endif; ?>>No</option>*/ ?>
        <?php /*</select>*/ ?>
        <?php /*<small class="text-danger">If YES, this game will show on homepage under Upcoming Games</small>*/ ?>
    <?php /*</div>*/ ?>

    <div class="form-group col-md-6">
        <label>FULL TIME RECOMMENDATION</label>
        <input type="text" name="FTRecommendation" class="form-control" value="<?php echo e($game->FTRecommendation); ?>">
        <small class="text-danger">Value here will show for Free Pick & Upcoming Game on homepage</small>
    </div>

    <?php /*<div class="form-group col-md-4">*/ ?>
        <?php /*<label>ACTUAL POINT/ODD</label>*/ ?>
        <?php /*<input type="text" name="actualPoint" class="form-control" value="<?php echo e($game->actualPoint); ?>">*/ ?>
    <?php /*</div>*/ ?>

    <div class="form-group col-md-6">
        <label>DOUBLE CHANCE</label>
        <select name="doubleChance" class="form-control">
            <option value="" <?php if($game->doubleChance==''): ?> selected <?php endif; ?>>*-*-*-*-*-*-*-*-*-*</option>
            <option value="1X" <?php if($game->doubleChance=='1X'): ?> selected <?php endif; ?>>1X</option>
            <option value="12" <?php if($game->doubleChance=='12'): ?> selected <?php endif; ?>>12</option>
            <option value="2X" <?php if($game->doubleChance=='2X'): ?> selected <?php endif; ?>>2X</option>
        </select>
    </div>

    <div class="form-group col-md-6">
        <label>1.5 GOALS</label>
        <select name="oneFiveGoals" class="form-control">
            <option value="" <?php if($game->oneFiveGoals==''): ?> selected <?php endif; ?>>*-*-*-*-*-*-*-*-*-*</option>
            <option value="Over 1.5" <?php if($game->oneFiveGoals=='Over 1.5'): ?> selected <?php endif; ?>>Over 1.5</option>
            <option value="Under 1.5" <?php if($game->oneFiveGoals=='Under 1.5'): ?> selected <?php endif; ?>>Under 1.5</option>
        </select>
    </div>

    <div class="form-group col-md-6">
        <label>2.5 GOALS</label>
        <select name="twoFiveGoals" class="form-control">
            <option value="" <?php if($game->twoFiveGoals==''): ?> selected <?php endif; ?>>*-*-*-*-*-*-*-*-*-*</option>
            <option value="Over 2.5" <?php if($game->twoFiveGoals=='Over 2.5'): ?> selected <?php endif; ?>>Over 2.5</option>
            <option value="Under 2.5" <?php if($game->twoFiveGoals=='Under 2.5'): ?> selected <?php endif; ?>>Under 2.5</option>
        </select>
    </div>

    <div class="form-group col-md-6">
        <label>BTTS/GG</label>
        <select name="BTTS" class="form-control">
            <option value="BTTS/GG" <?php if($game->BTTS=='BTTS/GG'): ?> selected <?php endif; ?>>BTTS/GG</option>
            <option value="No" <?php if($game->BTTS=='No'): ?> selected <?php endif; ?>>No</option>
        </select>
    </div>

    <?php /*<div class="form-group col-md-4">*/ ?>
        <?php /*<label>OVER 0.5 GOALS HT</label>*/ ?>
        <?php /*<select name="overZeroFiveHT" class="form-control">*/ ?>
            <?php /*<option value="" <?php if($game->overZeroFiveHT==''): ?> selected <?php endif; ?>>*-*-*-*-*-*-*-*-*-*</option>*/ ?>
            <?php /*<option value="Over 0.5" <?php if($game->overZeroFiveHT=='Over 0.5'): ?> selected <?php endif; ?>>Over 0.5</option>*/ ?>
            <?php /*<option value="Under 0.5" <?php if($game->overZeroFiveHT=='Under 0.5'): ?> selected <?php endif; ?>>Under 0.5</option>*/ ?>
        <?php /*</select>*/ ?>
    <?php /*</div>*/ ?>

    <?php /*<div class="form-group col-md-4">*/ ?>
        <?php /*<label>DRAW NO BET</label>*/ ?>
        <?php /*<select name="drawNoBet" class="form-control">*/ ?>
            <?php /*<option value="1 DNB" <?php if($game->drawNoBet=='1 DNB'): ?> selected <?php endif; ?>>1 DNB</option>*/ ?>
            <?php /*<option value="2 DNB" <?php if($game->drawNoBet=='2 DNB'): ?> selected <?php endif; ?>>2 DNB</option>*/ ?>
            <?php /*<option value="" <?php if($game->drawNoBet==''): ?> selected <?php endif; ?>>*-*-*-*-*-*-*-*-*-*</option>*/ ?>
        <?php /*</select>*/ ?>
    <?php /*</div>*/ ?>

    <?php /*<div class="form-group col-md-4">*/ ?>
        <?php /*<label>DRAWS</label>*/ ?>
        <?php /*<select name="draws" class="form-control">*/ ?>
            <?php /*<option value="X" <?php if($game->draws=='X'): ?> selected <?php endif; ?>>Yes</option>*/ ?>
            <?php /*<option value="" <?php if($game->draws==''): ?> selected <?php endif; ?>>*-*-*-*-*-*-*-*-*-*</option>*/ ?>
        <?php /*</select>*/ ?>
    <?php /*</div>*/ ?>

    <?php /*<div class="form-group col-md-4">*/ ?>
        <?php /*<label>HANDICAPS</label>*/ ?>
        <?php /*<input type="text" name="handicap" class="form-control" value="<?php echo e($game->handicap); ?>" placeholder="leave blank if nothing">*/ ?>
    <?php /*</div>*/ ?>

    <?php /*<div class="form-group col-md-4">*/ ?>
        <?php /*<label>BANKER OF D DAY</label>*/ ?>
        <?php /*<input type="text" name="bankerOfTheDay" class="form-control" value="<?php echo e($game->bankerOfTheDay); ?>" placeholder="leave blank if nothing">*/ ?>
    <?php /*</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>