<?php $__env->startSection('title'); ?>
    STAKEGAINS | Testimonials
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page'); ?>
    All Testimonials <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');
        ?>
        <table id="datatable" class="table table-striped table-bordered nowrap" cellspacing="0" width="100%">
            <thead>
            <tr>
                <th>REL</th>
                <th>Match Date</th>
                <th>Match Time</th>
                <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($alltestimonials->all() as $prediction): ?>
                <?php
                        $sn++;
                $creator = App\System::find($prediction->creator);
                ?>
                <tr id="<?php echo e($prediction->id); ?>">
                    <td class="red"><?php echo e($sn); ?></td>
                    <td><?php echo e($prediction->gamedate); ?></td>
                    <td><?php echo e($prediction->gametime); ?></td>
                    <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); ?></td>

                    <td><a class="gameview" href="<?php echo e($prediction->id); ?>" data-in="Archive" 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 class="updategame" data-in="Archive" href="<?php echo e($prediction->id); ?>" data-target="#updategame" data-toggle="modal">EDIT/UPDATE</a>
<?php /*                                <li style="cursor: pointer;"><a class="addresult" href="<?php echo e($prediction->id); ?>" data-in="Archive" data-target="#addresult" data-toggle="modal">ADD RESULT</a>*/ ?>
                                <?php if($prediction->testimonial=='0'): ?>
                                    <li style="cursor: pointer;"><a class="flag" data-in="Archive" 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="Archive" 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="Archive" 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="Archive" 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="Archive" href="<?php echo e($prediction->id); ?>" data-target="#gamedelete" data-toggle="modal">DELETE</a>
                                </li>
                            </ul>
                        </div>
                    </td>
                </tr>
            <?php endforeach; ?>
            </tbody>
        </table>
    </div>
    <div class="row" id="excon">
        <table class="table" id="exportthis">
            <thead>
            <tr>
                <th>S/N</th>
                <th>DATE CREATED</th>
                <th>MATCH DATE</th>
                <th>MATCH TIME</th>
                <th>TEAM ONE</th>
                <th>TEAM ONE FORM</th>
                <th>TEAM ONE ODDS</th>
                <th>TEAM TWO</th>
                <th>TEAM TWO FORM</th>
                <th>TEAM TWO ODDS</th>
                <th>DRAW ODD</th>
                <th>LEAGUE</th>
                <th>FREE MAESTRO SELECTION</th>
                <th>TODAY'S FREE GAME</th>
                <th>STAKE OF THE DAY</th>
                <th>FULL TIME RECOMMENDATION</th>
                <th>1ST HALF GOALS</th>
                <th>DOUBLE CHANCE</th>
                <th>1.5 GOALS</th>
                <th>2.5 GOALS</th>
                <th>BOTH TEAM TO SCORE</th>
                <th>1ST HALF RESULT</th>
                <th>WIN EITHER HALF</th>
                <th>1ST 15 MINS DRAW</th>
                <th>VALUE STAKE</th>
                <th>DRAW OPTION</th>
                <th>MORE OPTION</th>
            </tr>
            </thead>
            <tbody>
            <?php foreach($alltestimonials->all() as $p): ?>
                <tr>
                    <td><?php echo e($p->id); ?></td>
                    <td><?php echo e($p->created_at); ?></td>
                    <td><?php echo e($p->gamedate); ?></td>
                    <td><?php echo e($p->gametime); ?></td>
                    <td><?php echo e($p->teamone); ?></td>
                    <td><?php echo e($p->teamoneform); ?></td>
                    <td><?php echo e($p->teamoneodds); ?></td>
                    <td><?php echo e($p->teamtwo); ?></td>
                    <td><?php echo e($p->teamtwoform); ?></td>
                    <td><?php echo e($p->teamtwoodds); ?></td>
                    <td><?php echo e($p->drawodds); ?></td>
                    <td><?php echo e($p->league); ?></td>
                    <td><?php echo e($p->maestro); ?></td>
                    <td><?php echo e($p->today_game); ?></td>
                    <td><?php echo e($p->stake_of_the_day); ?></td>
                    <td><?php echo e($p->ft_recommendation); ?></td>
                    <td><?php echo e($p->firsthalf_goals); ?></td>
                    <td><?php echo e($p->double_chance); ?></td>
                    <td><?php echo e($p->onefive_goals); ?></td>
                    <td><?php echo e($p->twofive_goals); ?></td>
                    <td><?php echo e($p->both_team_score); ?></td>
                    <td><?php echo e($p->firsthalf_result); ?></td>
                    <td><?php echo e($p->win_either_half); ?></td>
                    <td><?php echo e($p->first15mins_draw); ?></td>
                    <td><?php echo e($p->value_stakes); ?></td>
                    <td><?php echo e($p->draw_option); ?></td>
                    <td><?php echo e($p->more_options); ?></td>
                </tr>
            <?php endforeach; ?>
            </tbody>
        </table>
    </div>

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

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