

<?php $__env->startSection('title'); ?>
    SPORTPESA | ALL VIP PREDICTIONS
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page'); ?>
    VIP Predictions
<?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>
                <th>League</th>
                <th></th>
                <th class="red" style="background: #b1f10c; text-align: center"></th>
                <th></th>
                <th>Presence</th>
                <th>Result</th>
                <th>Details</th>
                <th>Controls</th>
            </tr>
            </thead>
            <tbody>
            <?php
            $sn = 0;
            ?>
            <?php foreach($allprediction->all() as $prediction): ?>
                <?php
                $sn++;
                ?>
                <tr id="pred<?php echo e($prediction->id); ?>" <?php if($prediction->teamOneWon!=''): ?> style="background: lightgreen; color: darkgreen" <?php endif; ?>>
                    <td class="red"><?php echo e($sn); ?></td>
                    <td>
                        <?php echo e($prediction->gameDate); ?> <br>
                        <?php echo e($prediction->gameTime); ?>

                    </td>
                    <td><?php echo e($prediction->league); ?></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>
                    <?php /*                <td><?php echo e($prediction->drawOdd); ?></td>*/ ?>
                    <td>
                        <div class="tags">
                            <small>
                                <?php if($prediction->multiBetOne!='No'): ?> <span class="tag">Multibet 1: <strong><?php echo e($prediction->multiBetOneTip); ?> - (<?php echo e($prediction->multiBetOneOdds); ?>)</strong></span> <?php endif; ?>
                                    <?php if($prediction->multiBetTwo!='No'): ?> <span class="tag">Multibet 2: <strong><?php echo e($prediction->multiBetTwoTip); ?> - (<?php echo e($prediction->multiBetTwoOdds); ?>)</strong></span> <?php endif; ?>
                                        <?php if($prediction->multiBetThree!='No'): ?> <span class="tag">Multibet 3: <strong><?php echo e($prediction->multiBetThreeTip); ?> - (<?php echo e($prediction->multiBetThreeOdds); ?>)</strong></span> <?php endif; ?>
                                            <?php if($prediction->super!='No'): ?> <span class="tag">Super: <strong><?php echo e($prediction->superTip); ?> - (<?php echo e($prediction->superOdds); ?>)</strong></span> <?php endif; ?>
                                <?php if($prediction->HTFT!='No'): ?> <span class="tag">HT/FT: <strong><?php echo e($prediction->HTFT); ?> - (<?php echo e($prediction->HTFTOdds); ?>)</strong></span> <?php endif; ?>
                                <?php if($prediction->mega!='No'): ?> <span class="tag">Mega: <strong><?php echo e($prediction->megaTip); ?> - (<?php echo e($prediction->megaOdds); ?>)</strong></span> <?php endif; ?>
                                <?php if($prediction->midWeek!='No'): ?> <span class="tag">Midweek: <strong><?php echo e($prediction->midWeekTip); ?> - (<?php echo e($prediction->midWeekOdds); ?>)</strong></span> <?php endif; ?>
                            </small>
                        </div>
                    </td>
                    <td><?php if($prediction->teamOneWon): ?> <?php echo e($prediction->teamOneScore); ?> : <?php echo e($prediction->teamTwoScore); ?> <?php endif; ?></td>
                    <td><a class="gameview" href="" data-url="<?php echo e(route('/gamedetails')); ?>/<?php echo e($prediction->id); ?>/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;">
                                <?php /*<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="" data-url="<?php echo e(route('/updateVIPprediction')); ?>/<?php echo e($prediction->id); ?>/Prediction" data-target="#updategame" data-toggle="modal">EDIT/UPDATE</a>
                                <li style="cursor: pointer;"><a class="addresult" href="" data-url="<?php echo e(route('/addresult')); ?>/<?php echo e($prediction->id); ?>" data-target="#addresult" data-toggle="modal">ADD RESULT & TESTIMONIAL</a>
                                <?php if($prediction->display=='0'): ?>
                                    <li style="cursor: pointer;"><a class="hided" data-in="Prediction" href="" data-url="<?php echo e(route('/ajaxhide')); ?>/<?php echo e($prediction->id); ?>/Prediction" id="h<?php echo e($prediction->id); ?>">UNPUBLISH</a>
                                <?php else: ?>
                                    <li style="cursor: pointer;"><a class="unhide" data-in="Prediction" href="" data-url="<?php echo e(route('/ajaxunhide')); ?>/<?php echo e($prediction->id); ?>/Prediction" 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-url="<?php echo e(route('/ajaxgamedelete')); ?>/<?php echo e($prediction->id); ?>/Prediction" data-id="" href="">DELETE</a>
                                </li>
                            </ul>
                        </div>
                    </td>
                </tr>
            <?php endforeach; ?>
            </tbody>
        </table>
        <?php echo e($allprediction->render()); ?>

    </div>

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

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