<?php $__env->startSection('title'); ?>
    STAKEGAINS | Predictions
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page'); ?>
    All Predictions
    <?php /*<button class="btn btn-sm btn-success pull-right" id="exportbtn"><span class="fa fa-download"></span> DOWNLOAD AS SPREADSHEET</button>*/ ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="col" style="min-height: 323px;;">
        <br><br>
        <?php
        $date = new dateTime();
        $d = $date->format('j F, Y');
        ?>
        <?php echo e($allprediction->render()); ?>

        <table id="datatable" class="table table-striped table-bordered nowrap" cellspacing="0" width="100%">
            <thead>
            <tr>
                <th>REL</th>
                <th>Match Date</th>
                <?php /*<th>Match Time</th>*/ ?>
                <?php /*<th>Predictor</th>*/ ?>
                <th></th>
                <th class="red" style="background: #b1f10c; text-align: center"></th>
                <th></th>
                <th>Draw Odd</th>
                <th>FT-Rec</th>

                <th>Details</th>
                <th>Controls</th>
            </tr>
            </thead>
            <tbody>
            <?php
                    $sn = 0;
            ?>
            <?php foreach($allprediction->all() as $prediction): ?>
                <?php
                $sn++;
//                $creator = App\System::find($prediction->creator);
                ?>
            <tr id="pred<?php echo e($prediction->id); ?>">
                <td class="red"><?php echo e($sn); ?></td>
                <td>
                    <?php echo e($prediction->gamedate); ?> <br>
                    <?php echo e($prediction->gametime); ?>

                </td>
                <?php /*<td><a class="creatorview" href="<?php echo e($creator['id']); ?>" data-target="#creator" data-toggle="modal"><span style="color: brown;"><?php echo e($creator['name']); ?></span></a></td>*/ ?>
                <td><?php echo e($prediction->teamone); ?></td>
                <td class="red" style="background: #b1f10c; text-align: center; font-weight: bold">VS</td>

                <td><?php echo e($prediction->teamtwo); ?></td>
                <td><?php echo e($prediction->drawodd); ?></td>
                <td><?php echo e($prediction->ft_recommendation); ?>

                    <span id="other<?php echo e($prediction->id); ?>">
                    <?php if($prediction->ft_others!=NULL): ?>
                        (<?php echo e($prediction->ft_others); ?>)
                    <?php endif; ?>
                    </span>
                    - <a class="addftt" href="<?php echo e($prediction->id); ?>" data-target="#addft" data-toggle="modal"><button class="btn btn-xs btn-success">Add</button></a></td>

                <td><a class="gameview" href="<?php echo e($prediction->id); ?>" data-in="Prediction" data-target="#gamedetail" data-toggle="modal"><span style="color: green;"><span class="fa fa-eye"></span> VIEW</span></a></td>
                <td>
                    <div class="btn-group">
                        <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
                            Actions
                            <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu pull-right" role="menu" style="background: whitesmoke; -webkit-box-shadow: inset 0px 0px 10px grey;-moz-box-shadow: inset 0px 0px 10px grey;box-shadow: inset 0px 0px 10px grey;">
                            <li style="cursor: pointer;"><a style="color: red;" class="archiveGame" data-id="<?php echo e($prediction->id); ?>">ARCHIVE THIS</a>
                            <li style="cursor: pointer;"><a class="updategame" data-in="Prediction" href="<?php echo e($prediction->id); ?>" data-target="#updategame" data-toggle="modal">EDIT/UPDATE</a>
                            <li style="cursor: pointer;"><a class="addresult" href="<?php echo e($prediction->id); ?>" data-target="#addresult" data-toggle="modal">ADD RESULT</a>
                            <?php if($prediction->testimonial=='0'): ?>
                            <li style="cursor: pointer;"><a class="flag" href="<?php echo e($prediction->id); ?>" id="f<?php echo e($prediction->id); ?>" data-target="#marktest" data-toggle="modal">MARK TESTIMONIAL</a>
                            <?php else: ?>
                                <li style="cursor: pointer;"><a class="unflag" data-in="Prediction" href="<?php echo e($prediction->id); ?>" id="f<?php echo e($prediction->id); ?>"><span style="color: red;">UNMARK TESTIMONIAL</span></a>
                            <?php endif; ?>

                            <?php if($prediction->display=='0'): ?>
                                <li style="cursor: pointer;"><a class="hided" data-in="Prediction" href="<?php echo e($prediction->id); ?>" id="h<?php echo e($prediction->id); ?>">UNPUBLISH</a>
                            <?php else: ?>
                                <li style="cursor: pointer;"><a class="unhide" data-in="Prediction" href="<?php echo e($prediction->id); ?>" id="h<?php echo e($prediction->id); ?>"><span style="color: green;">PUBLISH</span></a>
                            <?php endif; ?>

                            <li style="cursor: pointer;"><a class="gamedelete" data-in="Prediction" data-id="<?php echo e($prediction->id); ?>" href="">DELETE</a>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
            <?php endforeach; ?>
            </tbody>
        </table>
        <?php echo e($allprediction->render()); ?>

    </div>
<div class="row" id="excon">
    <?php /*<table class="table" id="exportthis">*/ ?>
        <?php /*<thead>*/ ?>
        <?php /*<tr>*/ ?>
        <?php /*<th>S/N</th>*/ ?>
        <?php /*<th>DATE CREATED</th>*/ ?>
        <?php /*<th>MATCH DATE</th>*/ ?>
        <?php /*<th>MATCH TIME</th>*/ ?>
        <?php /*<th>TEAM ONE</th>*/ ?>
        <?php /*<th>TEAM ONE FORM</th>*/ ?>
        <?php /*<th>TEAM ONE ODDS</th>*/ ?>
        <?php /*<th>TEAM TWO</th>*/ ?>
        <?php /*<th>TEAM TWO FORM</th>*/ ?>
        <?php /*<th>TEAM TWO ODDS</th>*/ ?>
        <?php /*<th>DRAW ODD</th>*/ ?>
        <?php /*<th>LEAGUE</th>*/ ?>
        <?php /*<th>FREE MAESTRO SELECTION</th>*/ ?>
        <?php /*<th>TODAY'S FREE GAME</th>*/ ?>
        <?php /*<th>STAKE OF THE DAY</th>*/ ?>
        <?php /*<th>FULL TIME RECOMMENDATION</th>*/ ?>
        <?php /*<th>1ST HALF GOALS</th>*/ ?>
        <?php /*<th>DOUBLE CHANCE</th>*/ ?>
        <?php /*<th>1.5 GOALS</th>*/ ?>
        <?php /*<th>2.5 GOALS</th>*/ ?>
        <?php /*<th>BOTH TEAM TO SCORE</th>*/ ?>
        <?php /*<th>1ST HALF RESULT</th>*/ ?>
        <?php /*<th>WIN EITHER HALF</th>*/ ?>
        <?php /*<th>1ST 15 MINS DRAW</th>*/ ?>
        <?php /*<th>VALUE STAKE</th>*/ ?>
        <?php /*<th>DRAW OPTION</th>*/ ?>

        <?php /*<th>3 ODDS BANKER</th>*/ ?>
        <?php /*<th>7 ODDS BANKER</th>*/ ?>
        <?php /*<th>HIGHEST SCORING HALF</th>*/ ?>

        <?php /*<th>MORE OPTION</th>*/ ?>

        <?php /*<th>DOUBLE CHANCE/BTTS</th>*/ ?>
        <?php /*<th>3.5 GOALS</th>*/ ?>
        <?php /*<th>WIN BOTH HALVES</th>*/ ?>
        <?php /*<th>SCORE BOTH HALVES</th>*/ ?>
        <?php /*<th>HANDICAP (0:1, 1:0)</th>*/ ?>
        <?php /*<th>HANDICAP (0:2, 2:0)</th>*/ ?>
        <?php /*<th>1X3/BTTS</th>*/ ?>
        <?php /*<th>SMASHING ACCUMULATOR</th>*/ ?>
        <?php /*<th>MEGA WEEKEND</th>*/ ?>
        <?php /*</tr>*/ ?>
        <?php /*</thead>*/ ?>
        <?php /*<tbody>*/ ?>
        <?php /*<?php foreach($allprediction->all() as $p): ?>*/ ?>
            <?php /*<tr>*/ ?>
            <?php /*<td><?php echo e($p->id); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->created_at); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->gamedate); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->gametime); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->teamone); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->teamoneform); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->teamoneodds); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->teamtwo); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->teamtwoform); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->teamtwoodds); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->drawodds); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->league); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->maestro); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->today_game); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->stake_of_the_day); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->ft_recommendation); ?> (<?php echo e($prediction->ft_others); ?>)</td>*/ ?>
            <?php /*<td><?php echo e($p->firsthalf_goals); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->double_chance); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->onefive_goals); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->twofive_goals); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->both_team_score); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->firsthalf_result); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->win_either_half); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->first15mins_draw); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->value_stakes); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->draw_option); ?></td>*/ ?>

            <?php /*<td><?php echo e($p->three_odds_banker); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->seven_odds_banker); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->highest_scoring_half); ?></td>*/ ?>

            <?php /*<td><?php echo e($p->more_options); ?></td>*/ ?>

            <?php /*<td><?php echo e($p->double_chance_btts); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->threefive_goals); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->win_both_half); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->score_both_half); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->handicap_one); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->handicap_two); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->x2btts); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->smashing); ?></td>*/ ?>
            <?php /*<td><?php echo e($p->mega); ?></td>*/ ?>
            <?php /*</tr>*/ ?>
        <?php /*<?php endforeach; ?>*/ ?>
        <?php /*</tbody>*/ ?>
    <?php /*</table>*/ ?>
</div>

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

<?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>