    <form action="#" method="POST" id="settingform">
        <div class="container-fluid">
        <div class="col-xs-12">
            <input type="hidden" name="id" value="<?php echo e($game->id); ?>">
            <div class="col-md-5 col-xs-12" style="background: whitesmoke; padding: 15px;">
                <div class="form-group col-xs-12">
                    <input type="text" name="team1" 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="team1form" placeholder="eg. WWWLD" class="form-control" maxlength="5" value="<?php echo e($game->teamoneform); ?>">
                </div>
                <div class="form-group col-md-6 col-xs-12">
                    <label for="team1odd">ODDS</label>
                    <input type="text" name="team1odds" 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>
                <div class="form-group">
                    <input class="form-control" name="drawodd" type="text" placeholder="DRAW ODD" value="<?php echo e($game->drawodd); ?>">
                </div>
                <div class="form-group">
                    <input class="form-control" name="matchdate" id="matchdate" type="text" placeholder="MATCH DATE" required value="<?php echo e($game->gamedate); ?>">
                </div>
                <div class="form-group">
                    <input class="form-control" name="matchtime" id="matchtime" type="text" placeholder="MATCH TIME" required value="<?php echo e($game->gametime); ?>">
                </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="team2" class="form-control" placeholder="TEAM TWO" required value="<?php echo e($game->teamtwo); ?>">
                </div>

                <div class="form-group col-md-6 col-xs-12">
                    <label for="team1odd">FORM</label>
                    <input type="text" name="team2form" placeholder="eg. WWWLD" class="form-control" maxlength="5" value="<?php echo e($game->teamtwoform); ?>">
                </div>
                <div class="form-group col-md-6 col-xs-12">
                    <label for="team1odd">ODDS</label>
                    <input type="text" name="team2odds" 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-4">
        <label>MATCH LEAGUE CATEGORY</label>
        <select name="league" class="form-control" required>
            <option value="<?php echo e($game->league); ?>"><?php echo e($game->league); ?></option>
            <?php foreach($allleagues->all() as $leagues): ?>
                <option value="<?php echo e($leagues->code); ?>"><?php echo e($leagues->league); ?> (<?php echo e($leagues->code); ?>)</option>
            <?php endforeach; ?>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>TODAY'S FREE MAESTRO SELECTION?</label>
        <select name="maestro" class="form-control">
            <option value="<?php echo e($game->maestro); ?>"><?php echo e($game->maestro); ?></option>
            <option value="Yes">Yes</option>
            <option value="No">No</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>GAINS IN VIEW</label>
        <select name="todays" class="form-control">
            <option value="<?php echo e($game->today_game); ?>"><?php echo e($game->today_game); ?></option>
            <option value="Yes">Yes</option>
            <option value="No">No</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>STAKE OF THE DAY?</label>
        <select name="stake" class="form-control">
            <option value="<?php echo e($game->stake_of_the_day); ?>"><?php echo e($game->stake_of_the_day); ?></option>
            <option value="Yes">Yes</option>
            <option value="No">No</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>FULL TIME RECOMMENDATION</label>
        <select name="recommendation" class="form-control">
            <option value="<?php echo e($game->ft_recommendation); ?>"><?php echo e($game->ft_recommendation); ?></option>
            <option value="None">*-*-*-*-*-*-*-*-*-*</option>
            <option value="1">1</option>
            <option value="1x">1X</option>
            <option value="12">12</option>
            <option value="2X">2X</option>
            <option value="2">2</option>
            <option value="X">X</option>
            <option value="1/1 (Ht/Ft)">1/1 (Ht/Ft)</option>
            <option value="1/X (Ht/Ft)">1/X (Ht/Ft)</option>
            <option value="1/2 (Ht/Ft)">1/2 (Ht/Ft)</option>
            <option value="X/1 (Ht/Ft)">X/1 (Ht/Ft)</option>
            <option value="X/X (Ht/Ft)">X/X (Ht/Ft)</option>
            <option value="X/2 (Ht/Ft)">X/2 (Ht/Ft)</option>
            <option value="2/1 (Ht/Ft)">2/1 (Ht/Ft)</option>
            <option value="2/X (Ht/Ft)">2/X (Ht/Ft)</option>
            <option value="2/2 (Ht/Ft)">2/2 (Ht/Ft)</option>
            <option value="X (HT)">X (HT)</option>
            <option value="2 (HT)">2 (HT)</option>
            <option value="1 (HT)">1 (HT)</option>
            <option value="Under 1.5 Goals">Under 1.5 Goals</option>
            <option value="Over 1.5 Goals">Over 1.5 Goals</option>
            <option value="Under 2.5 Goals">Under 2.5 Goals</option>
            <option value="Over 2.5 Goals">Over 2.5 Goals</option>
            <option value="Under 3.5 Goals">Under 3.5 Goals</option>
            <option value="Over 3.5 Goals">Over 3.5 Goals</option>
            <option value="BTTS Yes">BTTS Yes</option>
            <option value="BTTS No">BTSS No</option>
            <option value="Away Win Either Half">Away Win Either Half</option>
            <option value="Home Win Either Half">Home Win Either Half</option>
            <option value="Over 0.5 Goals 1st Half">Over 0.5 Goals 1st Half</option>
            <option value="Over 1.5 Goals 1st Half">Over 1.5 Goals 1st Half</option>
            <option value="Over 0.5 Goals Halftime">Over 0.5 Goals Halftime</option>
            <option value="Over 1.5 Goals Halftime">Over 1.5 Goals Halftime</option>
            <option value="Under 0.5 Goals 1st Half">Under 0.5 Goals 1st Half</option>
            <option value="Under 1.5 Goals 1st Half">Under 1.5 Goals 1st Half</option>
            <option value="Under 0.5 Goals Halftime">Under 0.5 Goals Halftime</option>
            <option value="Under 1.5 Goals Halftime">Under 1.5 Goals Halftime</option>
            <option value="Home to Score">Home to Score</option>
            <option value="Away to Score">Away to Score</option>
            <option value="Home win(Handicap 0:2)">Home win(Handicap 0:2)</option>
            <option value="Away win (Handicap 0:2)">Away win (Handicap 0:2)</option>
            <option value="Home win (Handicap 2:0)">Home win (Handicap 2:0)</option>
            <option value="Away win (Handicap 2:0)">Away win (Handicap 2:0)</option>
            <option value="Home win (Handicap 0:1)">Home win (Handicap 0:1)</option>
            <option value="Away win (Handicap 1:0)">Away win (Handicap 1:0)</option>
            <option value="Home Win 2nd Half">Home Win 2nd Half</option>
            <option value="Away Win 2nd Half">Away Win 2nd Half</option>
            <option value="Home To Score Both Halves">Home To Score Both Halves</option>
            <option value="Away To Score Both Halves">Away To Score Both Halves</option>
            <option value="Home To Win Both Halves">Home To Win Both Halves</option>
            <option value="Away To Win Both Halves">Away To Win Both Halves</option>
            <option value="1st 15 Mins Draw">1st 15 Mins Draw</option>
            <option value="No Team Scores">No Team Scores</option>
            <option value="1 and Over 1.5 Goals">1 and Over 1.5 Goals</option>
            <option value="1 and Under 1.5 Goals">1 and Under 1.5 Goals</option>
            <option value="2 and Over 1.5 Goals">2 and Over 1.5 Goals</option>
            <option value="2 and Under 1.5 Goals">2 and Under 1.5 Goals</option>
            <option value="1 and Over 2.5 Goals">1 and Over 2.5 Goals</option>
            <option value="1 and Under 2.5 Goals">1 and Under 2.5 Goals</option>
            <option value="2 and Over 2.5 Goals">2 and Over 2.5 Goals</option>
            <option value="2 and Under 2.5 Goals">2 and Under 2.5 Goals</option>
            <option value="Home/Yes">Home/Yes</option>
            <option value="Home/No">Home/No</option>
            <option value="Away/Yes">Away/Yes</option>
            <option value="Away/ No">Away/ No</option>
            <option value="Draw/Yes">Draw/Yes</option>
            <option value="Draw/ No">Draw/ No</option>
            <option value="1X/Yes">1X/Yes</option>
            <option value="1X/ No">1X/ No</option>
            <option value="2X/Yes">2X/Yes</option>
            <option value="2X/ No">2X/ No</option>
            <option value="1X(Ht)">1X(Ht)</option>
            <option value="2X(Ht)">2X(Ht)</option>
            <option value="1st Half (HSF)">1st Half (HSF)</option>
            <option value="Equals (HSF)">Equals (HSF)</option>
            <option value="2nd Half (HSF)">2nd Half (HSF)</option>
            <option value="12/Yes">12/Yes</option>
            <option value="12/No">12/No</option>
            <option value=""></option>
            <option value="1X And Over 1.5 Goals">1X And Over 1.5 Goals</option>
            <option value="1X And Under 1.5 Goals">1X And Under 1.5 Goals</option>
            <option value="2X And Over 1.5 Goals">2X And Over 1.5 Goals</option>
            <option value="2X And Under 1.5 Goals">2X And Under 1.5 Goals</option>
            <option value="1X And Over 2.5 Goals">1X And Over 2.5 Goals</option>
            <option value="1X And  Under 2.5 Goals">1X And  Under 2.5 Goals</option>
            <option value="2X And Over 2.5 Goals">2X And Over 2.5 Goals</option>
            <option value="2X And Under 2.5 Goals">2X And Under 2.5 Goals</option>
            <option value="1X And Over 3.5 Goals">1X And Over 3.5 Goals</option>
            <option value="1X And Under 3.5 Goals">1X And Under 3.5 Goals</option>
            <option value="2X And Over 3.5 Goals">2X And Over 3.5 Goals</option>
            <option value="2X And Under 3.5 Goals">2X And Under 3.5 Goals</option>
            <option value="Away win (1st Half Handicap 1:0)">Away win (1st Half Handicap 1:0)</option>
            <option value="Home win (1st Half Handicap 0:1)">Home win (1st Half Handicap 0:1)</option>
            <option value="Home win(2nd Half  handicap 0:1)">Home win(2nd Half  handicap 0:1)</option>
            <option value="Away win(2nd Half handicap 1:0)">Away win(2nd Half handicap 1:0)</option>
            <option value="1X 1st Half">1X 1st Half</option>
            <option value="2X 1st Half">2X 1st Half</option>
            <option value=""></option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>1ST HALF GOALS</label>
        <select name="firsthalfgoal" class="form-control">
            <option value="<?php echo e($game->firsthalf_goals); ?>"><?php echo e($game->firsthalf_goals); ?></option>
            <option value="Under 0.5 Goal">Under 0.5 Goal</option>
            <option value="Over 0.5 Goal">Over 0.5 Goal</option>
            <option value="Under 1.5 Goal">Under 1.5 Goal</option>
            <option value="Over 1.5 Goal">Over 1.5 Goal</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>DOUBLE CHANCE</label>
        <select name="doublechance" class="form-control">
            <option value="<?php echo e($game->double_chance); ?>"><?php echo e($game->double_chance); ?></option>
            <option value="1x">1x</option>
            <option value="2x">2x</option>
            <option value="12">12</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>1.5 GOALS</label>
        <select name="goal15" class="form-control">
            <option value="<?php echo e($game->onefive_goals); ?>"><?php echo e($game->onefive_goals); ?></option>
            <option value="Over 1.5">Over 1.5</option>
            <option value="Under 1.5">Under 1.5</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>2.5 GOALS</label>
        <select name="goal25" class="form-control">
            <option value="<?php echo e($game->twofive_goals); ?>"><?php echo e($game->twofive_goals); ?></option>
            <option value="Over 2.5">Over 2.5</option>
            <option value="Under 2.5">Under 2.5</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>BOTH TEAM TO SCORE?</label>
        <select name="bothteam" class="form-control">
            <option value="<?php echo e($game->both_team_score); ?>"><?php echo e($game->both_team_score); ?></option>
            <option value="Yes">Yes</option>
            <option value="No">No</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>1ST HALF RESULT?</label>
        <select name="firsthalfresult" class="form-control">
            <option value="<?php echo e($game->firsthalf_result); ?>"><?php echo e($game->firsthalf_result); ?></option>
            <option value="Home">Home</option>
            <option value="Draw">Draw</option>
            <option value="Away">Away</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>WIN EITHER HALF</label>
        <select name="wineither" class="form-control">
            <option value="<?php echo e($game->win_either_half); ?>"><?php echo e($game->win_either_half); ?></option>
            <option value="Home">Home</option>
            <option value="Away">Away</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>1ST 15 MINS DRAW?</label>
        <select name="firstfifteen" class="form-control">
            <option value="<?php echo e($game->first15mins_draw); ?>"><?php echo e($game->first15mins_draw); ?></option>
            <option value="Yes">Yes</option>
            <option value="No">No</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>VALUE STAKES</label>
        <select name="valuestake" class="form-control">
            <option value="<?php echo e($game->value_stakes); ?>"><?php echo e($game->value_stakes); ?></option>
            <option value="Under 3.5">Under 3.5</option>
            <option value="Over 3.5">Over 3.5</option>
            <option value="Home to score both halves">Home to score both halves</option>
            <option value="Home to win both halves">Home to win both halves</option>
            <option value="Away to score both halves">Away to score both halves</option>
            <option value="Away to win both halves">Away to win both halves</option>
            <option value="Home full handicap win (0:1)">Home full handicap win (0:1)</option>
            <option value="Away full handicap win (1:0)">Away full handicap win (1:0)</option>
            <option value="Home 1st half handicap win (0:1)">Home 1st half handicap win (0:1)</option>
            <option value="Away 1st half handicap win (1:0)">Away 1st half handicap win (1:0)</option>
            <option value="1">1</option>
            <option value="X">X</option>
            <option value="2">2</option>
            <option value=""></option>
            <option value="Over 2.5 Goals">Over 2.5 Goals</option>
            <option value="Under 2.5 Goals">Under 2.5 Goals</option>
            <option value="Over 1.5 Goals">Over 1.5 Goals</option>
            <option value="Under 1.5 Goals">Under 1.5 Goals</option>
            <option value="1X/Yes">1X/Yes</option>
            <option value="1X/No">1X/No</option>
            <option value="2X/Yes">2X/Yes</option>
            <option value="2X/No">2X/No</option>
            <option value="12/Yes">12/Yes</option>
            <option value="12/No">12/No</option>
            <option value="1 And Over 1.5 Goals">1 And Over 1.5 Goals</option>
            <option value="1 And Under 1.5 Goals">1 And Under 1.5 Goals</option>
            <option value="2 and Over 1.5 Goals">2 and Over 1.5 Goals</option>
            <option value="2 And Under 1.5 Goals">2 And Under 1.5 Goals</option>
            <option value="Yes And Over 2.5 Goals">Yes And Over 2.5 Goals</option>
            <option value="No And Over 2.5 Goals">No And Over 2.5 Goals</option>
            <option value="Yes And Over 1.5 Goals">Yes And Over 1.5 Goals</option>
            <option value="No and Over 1.5 Goals">No and Over 1.5 Goals</option>
            <option value="1X And Over 1.5 Goals">1X And Over 1.5 Goals</option>
            <option value="1X And Under 1.5 Goals">1X And Under 1.5 Goals</option>
            <option value="2X And Over 1.5 Goals">2X And Over 1.5 Goals</option>
            <option value="2X And Under 1.5 Goals">2X And Under 1.5 Goals</option>
            <option value="1X And Over 2.5 Goals">1X And Over 2.5 Goals</option>
            <option value="1X And Under 2.5 Goals">1X And Under 2.5 Goals</option>
            <option value="2X And Over 2.5 Goals">2X And Over 2.5 Goals</option>
            <option value="2X and Under 2.5 Goals">2X and Under 2.5 Goals</option>
            <option value="1X And Over 3.5 Goals">1X And Over 3.5 Goals</option>
            <option value=""></option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>DRAW</label>
        <select name="drawoption" class="form-control">
            <option value="<?php echo e($game->draw_option); ?>"><?php echo e($game->draw_option); ?></option>
            <option value="X">X</option>
            <option value="No">No</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>3 ODDS BANKER</label>
        <select name="oddbanker" class="form-control">
            <option value="<?php echo e($game->three_odds_banker); ?>"><?php echo e($game->three_odds_banker); ?></option>
            <option value="First">First Set</option>
            <option value="Second">Second Set</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>CLASSICAL DOUBLE</label>
        <select name="sevenoddbanker" class="form-control">
            <option value="<?php echo e($game->seven_odds_banker); ?>"><?php echo e($game->seven_odds_banker); ?></option>
            <option value="First">First Set</option>
            <option value="Second">Second Set</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>HIGHEST SCORING HALF</label>
        <select name="highestscoring" class="form-control">
            <option value="<?php echo e($game->highest_scoring_half); ?>"><?php echo e($game->highest_scoring_half); ?></option>
            <option value="First Half">First Half</option>
            <option value="Equals">Equals</option>
            <option value="Second Half">Second Half</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>DOUBLE CHANCE/BTTS</label>
        <select name="doublebtts" class="form-control">
            <option value="<?php echo e($game->double_chance_btts); ?>"><?php echo e($game->double_chance_btts); ?></option>
            <option value="1X/Yes">1X/Yes</option>
            <option value="2X/Yes">2X/Yes</option>
            <option value="1X/No">1X/No</option>
            <option value="2X/No">2X/No</option>
            <option value="12/Yes">12/Yes</option>
            <option value="12/No">12/No</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>3.5 GOALS</label>
        <select name="threedotfive" class="form-control">
            <option value="<?php echo e($game->threefive_goals); ?>"><?php echo e($game->threefive_goals); ?></option>
            <option value="Over 3.5 Goals">Over 3.5 Goals</option>
            <option value="Under 3.5 Goals">Under 3.5 Goals</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>WIN BOTH HALVES</label>
        <select name="winbothhalves" class="form-control">
            <option value="<?php echo e($game->win_both_half); ?>"><?php echo e($game->win_both_half); ?></option>
            <option value="Home">Home Win Both Halves</option>
            <option value="Away">Away Win Both Halves</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>SCORE BOTH HALVES</label>
        <select name="scorebothhalves" class="form-control">
            <option value="<?php echo e($game->score_both_half); ?>"><?php echo e($game->score_both_half); ?></option>
            <option value="Home">Home to Score Halves</option>
            <option value="Away">Away to Score Halves</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>HANDICAP (0:1, 1:0)</label>
        <select name="handicapone" class="form-control">
            <option value="<?php echo e($game->handicap_one); ?>"><?php echo e($game->handicap_one); ?></option>
            <option value="Home Win (Handicap 0:1)">Home Win (Handicap 0:1)</option>
            <option value="Away Win (Handicap 1:0)">Away Win (Handicap 1:0)</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>HANDICAP (0:2, 2:0)</label>
        <select name="handicaptwo" class="form-control">
            <option value="<?php echo e($game->handicap_two); ?>"><?php echo e($game->handicap_two); ?></option>
            <option value="Home Win (Handicap 0:2)">Home Win (Handicap 0:2)</option>
            <option value="Away Win (Handicap 0:2)">Away Win (Handicap 0:2)</option>
            <option value="Home Win (Handicap 2:0)">Home Win (Handicap 2:0)</option>
            <option value="Away Win (Handicap 2:0)">Away Win (Handicap 2:0)</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>1X2/BTTS</label>
        <select name="x2btts" class="form-control">
            <option value="<?php echo e($game->x2btts); ?>"><?php echo e($game->x2btts); ?></option>
            <option value="Home/Yes">Home/Yes</option>
            <option value="Home/No">Home/No</option>
            <option value="Away/Yes">Away/Yes</option>
            <option value="Away/No">Away/No</option>
            <option value="Draw/Yes">Draw/Yes</option>
            <option value="Draw/No">Draw/No</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>SMASHING ACCUMULATOR</label>
        <select name="smashing" class="form-control">
            <option value="<?php echo e($game->smashing); ?>"><?php echo e($game->smashing); ?></option>
            <option value="Yes">Yes</option>
            <option value="No">No</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-md-4">
        <label>MEGA WEEKEND</label>
        <select name="mega" class="form-control">
            <option value="<?php echo e($game->mega); ?>"><?php echo e($game->mega); ?></option>
            <option value="Yes">Yes</option>
            <option value="No">No</option>
            <option value="None">None</option>
        </select>
    </div>

    <div class="form-group col-sm-12">
        <label for="moreoption">MORE OPTIONS</label>
        <textarea name="moreoption" id="moreoption" class="form-control"><?php echo e($game->more_options); ?></textarea>
    </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 () {
        $('#settingform').submit(function (e) {
            e.preventDefault();
            $('#settingstatus').html('Updating... Please wait');
            $('#submitsetting').prop('disabled', true);

            var dataString = $(this).serialize();
            console.log(dataString);
            $.ajax({
                type: "POST",
                url: "ajaxupdate",
                data: dataString,
                dataType: "JSON",
                success: function(data){
                    if (data.status == 1) {
                        $('#submitsetting').prop('disabled', false);
                        $('#settingstatus').html(data.encounters);
                         console.log(data);
                    }
                    else{
//                        $('#settingstatus').html(data.encounters);
                        alert(data.encounters);
                        $('#updategame').modal('hide');
                    }
                }
            });

        });
    });
</script>