

<?php $__env->startSection('title'); ?>
    SPORTPESA | EXPIRED SUBSCRIBERS
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page'); ?>
    Expired Accounts
    <?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="" role="tabpanel" data-example-id="togglable-tabs">
        <ul id="myTab1" class="nav nav-tabs bar_tabs" role="tablist">
            <li role="presentation" class="active"><a href="#tab_content11" id="home-tabb" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">Premium Plan</a></li>
            <li role="presentation" class=""><a href="#tab_content22" role="tab" id="profile-tabb" data-toggle="tab" aria-controls="profile" aria-expanded="false">Super Plan</a></li>
            <li role="presentation" class=""><a href="#tab_content33" role="tab" id="master-tabb" data-toggle="tab" aria-controls="master" aria-expanded="false">HT/FT Plan</a></li>
            <li role="presentation" class=""><a href="#tab_content44" role="tab" id="mega-tabb" data-toggle="tab" aria-controls="mega" aria-expanded="false">Mega Jackpot Plan</a></li>
            <li role="presentation" class=""><a href="#tab_content55" role="tab" id="midweek-tabb" data-toggle="tab" aria-controls="midweek" aria-expanded="false">Midweek Jackpot Plan</a></li>
        </ul>
        <div id="myTabContent2" class="tab-content">
            <div role="tabpanel" class="tab-pane fade active in" id="tab_content11" aria-labelledby="home-tab">
                <div class="row">
                    <div class="col-sm-12">
                        <table class="table datatable table-striped table-bordered nowrap" cellspacing="0" width="100%">
                            <thead>
                            <tr>
                                <th>S/N</th>
                                <th>ID</th>
                                <th>FULL NAME</th>
                                <th>EMAIL ADDRESS</th>
                                <th>PLAN</th>
                                <th>SUB DATE</th>
                                <th>DUE DATE</th>
                                <?php /*<th>Details</th>*/ ?>
                                <th>Controls</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php foreach($premium->all() as $i=> $user): ?>

                                <tr class="d<?php echo e($user->id); ?>">
                                    <td class="red"><?php echo e($i+1); ?></td>
                                    <td class="red"><?php echo e($user->id); ?></td>
                                    <td><?php echo e($user->full_name); ?></td>
                                    <td><?php echo e($user->email); ?></td>
                                    <td><?php echo e($user->subscription_type); ?></td>
                                    <td><?php echo e(\Carbon\Carbon::parse($user->date_subscribed)->format('d M @ h:ia')); ?></td>
                                    <td><?php echo e(\Carbon\Carbon::parse($user->next_due_date)->format('d M @ h:ia')); ?></td>

                                    <?php /*<td><a class="gameview" href="<?php echo e($user->id); ?>" data-target="#userdetail" data-toggle="modal"><span style="color: green;"><span class="fa fa-eye"></span> VIEW</span></a></td>*/ ?>
                                    <?php /*<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></li>
                                                <li style="cursor: pointer;"><a class="userdetails" href="<?php echo e($user->id); ?>" data-target="#userdetails" data-toggle="modal">VIEW DETAILS</a></li>
                                                <li style="cursor: pointer;"><a class="updateuser" href="<?php echo e($user->id); ?>" data-target="#updateuserinfo" data-toggle="modal">EDIT/UPDATE</a></li>
                                                <li style="cursor: pointer;"><a class="upgradeuser" href="<?php echo e($user->id); ?>" data-target="#upgradeuser" data-toggle="modal"><span class="fa fa-credit-card"></span> UPGRADE ACCOUNT</a></li>
                                                <li class="divider"></li>
                                                <?php if($user->flag=='0'): ?>
                                                    <li style="cursor: pointer;"><a class="flaguser" href="<?php echo e($user->id); ?>" id="f<?php echo e($user->id); ?>">FLAG USER</a>
                                                <?php else: ?>
                                                    <li style="cursor: pointer;"><a class="unflaguser" href="<?php echo e($user->id); ?>" id="f<?php echo e($user->id); ?>"><span style="color: red;">UNFLAG USER</span></a>
                                                <?php endif; ?>

                                                <?php if($user->status=='0'): ?>
                                                    <li style="cursor: pointer;"><a class="disableuser" href="<?php echo e($user->id); ?>" id="h<?php echo e($user->id); ?>">DISABLE USER</a>
                                                <?php else: ?>
                                                    <li style="cursor: pointer;"><a class="enableuser" href="<?php echo e($user->id); ?>" id="h<?php echo e($user->id); ?>"><span style="color: green;">ENABLE USER</span></a>
                                                <?php endif; ?>

                                                <li style="cursor: pointer;"><a class="userdelete" href="<?php echo e($user->id); ?>" data-target="#userdelete" data-toggle="modal">DELETE USER</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                            <?php endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div role="tabpanel" class="tab-pane fade" id="tab_content22" aria-labelledby="profile-tab">
                <div class="row">
                    <div class="col-sm-12">
                        <table class="table datatable table-striped table-bordered nowrap" cellspacing="0" width="100%">
                            <thead>
                            <tr>
                                <th>S/N</th>
                                <th>ID</th>
                                <th>FULL NAME</th>
                                <th>EMAIL ADDRESS</th>
                                <th>PLAN</th>
                                <th>SUB DATE</th>
                                <th>DUE DATE</th>
                                <?php /*<th>Details</th>*/ ?>
                                <th>Controls</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php foreach($super->all() as $i=> $user): ?>

                                <tr class="d<?php echo e($user->id); ?>">
                                    <td class="red"><?php echo e($i+1); ?></td>
                                    <td class="red"><?php echo e($user->id); ?></td>
                                    <td><?php echo e($user->full_name); ?></td>
                                    <td><?php echo e($user->email); ?></td>
                                    <td><?php echo e($user->subscription_type); ?></td>
                                    <td><?php echo e(\Carbon\Carbon::parse($user->date_subscribed)->format('d M @ h:ia')); ?></td>
                                    <td><?php echo e(\Carbon\Carbon::parse($user->next_due_date)->format('d M @ h:ia')); ?></td>

                                    <?php /*<td><a class="gameview" href="<?php echo e($user->id); ?>" data-target="#userdetail" data-toggle="modal"><span style="color: green;"><span class="fa fa-eye"></span> VIEW</span></a></td>*/ ?>
                                    <?php /*<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></li>
                                                <li style="cursor: pointer;"><a class="userdetails" href="<?php echo e($user->id); ?>" data-target="#userdetails" data-toggle="modal">VIEW DETAILS</a></li>
                                                <li style="cursor: pointer;"><a class="updateuser" href="<?php echo e($user->id); ?>" data-target="#updateuserinfo" data-toggle="modal">EDIT/UPDATE</a></li>
                                                <li style="cursor: pointer;"><a class="upgradeuser" href="<?php echo e($user->id); ?>" data-target="#upgradeuser" data-toggle="modal"><span class="fa fa-credit-card"></span> UPGRADE ACCOUNT</a></li>
                                                <li class="divider"></li>
                                                <?php if($user->flag=='0'): ?>
                                                    <li style="cursor: pointer;"><a class="flaguser" href="<?php echo e($user->id); ?>" id="f<?php echo e($user->id); ?>">FLAG USER</a>
                                                <?php else: ?>
                                                    <li style="cursor: pointer;"><a class="unflaguser" href="<?php echo e($user->id); ?>" id="f<?php echo e($user->id); ?>"><span style="color: red;">UNFLAG USER</span></a>
                                                <?php endif; ?>

                                                <?php if($user->status=='0'): ?>
                                                    <li style="cursor: pointer;"><a class="disableuser" href="<?php echo e($user->id); ?>" id="h<?php echo e($user->id); ?>">DISABLE USER</a>
                                                <?php else: ?>
                                                    <li style="cursor: pointer;"><a class="enableuser" href="<?php echo e($user->id); ?>" id="h<?php echo e($user->id); ?>"><span style="color: green;">ENABLE USER</span></a>
                                                <?php endif; ?>

                                                <li style="cursor: pointer;"><a class="userdelete" href="<?php echo e($user->id); ?>" data-target="#userdelete" data-toggle="modal">DELETE USER</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                            <?php endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

            <div role="tabpanel" class="tab-pane fade" id="tab_content33" aria-labelledby="master-tabb">
                <div class="row">
                    <div class="col-sm-12">
                        <table class="table datatable table-striped table-bordered nowrap" cellspacing="0" width="100%">
                            <thead>
                            <tr>
                                <th>S/N</th>
                                <th>ID</th>
                                <th>FULL NAME</th>
                                <th>EMAIL ADDRESS</th>
                                <th>PLAN</th>
                                <th>SUB DATE</th>
                                <th>DUE DATE</th>
                                <?php /*<th>Details</th>*/ ?>
                                <th>Controls</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php foreach($htft->all() as $i=> $user): ?>

                                <tr class="d<?php echo e($user->id); ?>">
                                    <td class="red"><?php echo e($i+1); ?></td>
                                    <td class="red"><?php echo e($user->id); ?></td>
                                    <td><?php echo e($user->full_name); ?></td>
                                    <td><?php echo e($user->email); ?></td>
                                    <td><?php echo e($user->subscription_type); ?></td>
                                    <td><?php echo e(\Carbon\Carbon::parse($user->date_subscribed)->format('d M @ h:ia')); ?></td>
                                    <td><?php echo e(\Carbon\Carbon::parse($user->next_due_date)->format('d M @ h:ia')); ?></td>

                                    <?php /*<td><a class="gameview" href="<?php echo e($user->id); ?>" data-target="#userdetail" data-toggle="modal"><span style="color: green;"><span class="fa fa-eye"></span> VIEW</span></a></td>*/ ?>
                                    <?php /*<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></li>
                                                <li style="cursor: pointer;"><a class="userdetails" href="<?php echo e($user->id); ?>" data-target="#userdetails" data-toggle="modal">VIEW DETAILS</a></li>
                                                <li style="cursor: pointer;"><a class="updateuser" href="<?php echo e($user->id); ?>" data-target="#updateuserinfo" data-toggle="modal">EDIT/UPDATE</a></li>
                                                <li style="cursor: pointer;"><a class="upgradeuser" href="<?php echo e($user->id); ?>" data-target="#upgradeuser" data-toggle="modal"><span class="fa fa-credit-card"></span> UPGRADE ACCOUNT</a></li>
                                                <li class="divider"></li>
                                                <?php if($user->flag=='0'): ?>
                                                    <li style="cursor: pointer;"><a class="flaguser" href="<?php echo e($user->id); ?>" id="f<?php echo e($user->id); ?>">FLAG USER</a>
                                                <?php else: ?>
                                                    <li style="cursor: pointer;"><a class="unflaguser" href="<?php echo e($user->id); ?>" id="f<?php echo e($user->id); ?>"><span style="color: red;">UNFLAG USER</span></a>
                                                <?php endif; ?>

                                                <?php if($user->status=='0'): ?>
                                                    <li style="cursor: pointer;"><a class="disableuser" href="<?php echo e($user->id); ?>" id="h<?php echo e($user->id); ?>">DISABLE USER</a>
                                                <?php else: ?>
                                                    <li style="cursor: pointer;"><a class="enableuser" href="<?php echo e($user->id); ?>" id="h<?php echo e($user->id); ?>"><span style="color: green;">ENABLE USER</span></a>
                                                <?php endif; ?>

                                                <li style="cursor: pointer;"><a class="userdelete" href="<?php echo e($user->id); ?>" data-target="#userdelete" data-toggle="modal">DELETE USER</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                            <?php endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

            <div role="tabpanel" class="tab-pane fade" id="tab_content44" aria-labelledby="mega-tabb">
                <div class="row">
                    <div class="col-sm-12">
                        <table class="table datatable table-striped table-bordered nowrap" cellspacing="0" width="100%">
                            <thead>
                            <tr>
                                <th>S/N</th>
                                <th>ID</th>
                                <th>FULL NAME</th>
                                <th>EMAIL ADDRESS</th>
                                <th>PLAN</th>
                                <th>SUB DATE</th>
                                <th>DUE DATE</th>
                                <?php /*<th>Details</th>*/ ?>
                                <th>Controls</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php foreach($mega->all() as $i=> $user): ?>

                                <tr class="d<?php echo e($user->id); ?>">
                                    <td class="red"><?php echo e($i+1); ?></td>
                                    <td class="red"><?php echo e($user->id); ?></td>
                                    <td><?php echo e($user->full_name); ?></td>
                                    <td><?php echo e($user->email); ?></td>
                                    <td><?php echo e($user->subscription_type); ?></td>
                                    <td><?php echo e(\Carbon\Carbon::parse($user->date_subscribed)->format('d M @ h:ia')); ?></td>
                                    <td><?php echo e(\Carbon\Carbon::parse($user->next_due_date)->format('d M @ h:ia')); ?></td>

                                    <?php /*<td><a class="gameview" href="<?php echo e($user->id); ?>" data-target="#userdetail" data-toggle="modal"><span style="color: green;"><span class="fa fa-eye"></span> VIEW</span></a></td>*/ ?>
                                    <?php /*<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></li>
                                                <li style="cursor: pointer;"><a class="userdetails" href="<?php echo e($user->id); ?>" data-target="#userdetails" data-toggle="modal">VIEW DETAILS</a></li>
                                                <li style="cursor: pointer;"><a class="updateuser" href="<?php echo e($user->id); ?>" data-target="#updateuserinfo" data-toggle="modal">EDIT/UPDATE</a></li>
                                                <li style="cursor: pointer;"><a class="upgradeuser" href="<?php echo e($user->id); ?>" data-target="#upgradeuser" data-toggle="modal"><span class="fa fa-credit-card"></span> UPGRADE ACCOUNT</a></li>
                                                <li class="divider"></li>
                                                <?php if($user->flag=='0'): ?>
                                                    <li style="cursor: pointer;"><a class="flaguser" href="<?php echo e($user->id); ?>" id="f<?php echo e($user->id); ?>">FLAG USER</a>
                                                <?php else: ?>
                                                    <li style="cursor: pointer;"><a class="unflaguser" href="<?php echo e($user->id); ?>" id="f<?php echo e($user->id); ?>"><span style="color: red;">UNFLAG USER</span></a>
                                                <?php endif; ?>

                                                <?php if($user->status=='0'): ?>
                                                    <li style="cursor: pointer;"><a class="disableuser" href="<?php echo e($user->id); ?>" id="h<?php echo e($user->id); ?>">DISABLE USER</a>
                                                <?php else: ?>
                                                    <li style="cursor: pointer;"><a class="enableuser" href="<?php echo e($user->id); ?>" id="h<?php echo e($user->id); ?>"><span style="color: green;">ENABLE USER</span></a>
                                                <?php endif; ?>

                                                <li style="cursor: pointer;"><a class="userdelete" href="<?php echo e($user->id); ?>" data-target="#userdelete" data-toggle="modal">DELETE USER</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                            <?php endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

            <div role="tabpanel" class="tab-pane fade" id="tab_content55" aria-labelledby="midweek-tabb">
                <div class="row">
                    <div class="col-sm-12">
                        <table class="table datatable table-striped table-bordered nowrap" cellspacing="0" width="100%">
                            <thead>
                            <tr>
                                <th>S/N</th>
                                <th>ID</th>
                                <th>FULL NAME</th>
                                <th>EMAIL ADDRESS</th>
                                <th>PLAN</th>
                                <th>SUB DATE</th>
                                <th>DUE DATE</th>
                                <?php /*<th>Details</th>*/ ?>
                                <th>Controls</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php foreach($midweek->all() as $i=> $user): ?>

                                <tr class="d<?php echo e($user->id); ?>">
                                    <td class="red"><?php echo e($i+1); ?></td>
                                    <td class="red"><?php echo e($user->id); ?></td>
                                    <td><?php echo e($user->full_name); ?></td>
                                    <td><?php echo e($user->email); ?></td>
                                    <td><?php echo e($user->subscription_type); ?></td>
                                    <td><?php echo e(\Carbon\Carbon::parse($user->date_subscribed)->format('d M @ h:ia')); ?></td>
                                    <td><?php echo e(\Carbon\Carbon::parse($user->next_due_date)->format('d M @ h:ia')); ?></td>

                                    <?php /*<td><a class="gameview" href="<?php echo e($user->id); ?>" data-target="#userdetail" data-toggle="modal"><span style="color: green;"><span class="fa fa-eye"></span> VIEW</span></a></td>*/ ?>
                                    <?php /*<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></li>
                                                <li style="cursor: pointer;"><a class="userdetails" href="<?php echo e($user->id); ?>" data-target="#userdetails" data-toggle="modal">VIEW DETAILS</a></li>
                                                <li style="cursor: pointer;"><a class="updateuser" href="<?php echo e($user->id); ?>" data-target="#updateuserinfo" data-toggle="modal">EDIT/UPDATE</a></li>
                                                <li style="cursor: pointer;"><a class="upgradeuser" href="<?php echo e($user->id); ?>" data-target="#upgradeuser" data-toggle="modal"><span class="fa fa-credit-card"></span> UPGRADE ACCOUNT</a></li>
                                                <li class="divider"></li>
                                                <?php if($user->flag=='0'): ?>
                                                    <li style="cursor: pointer;"><a class="flaguser" href="<?php echo e($user->id); ?>" id="f<?php echo e($user->id); ?>">FLAG USER</a>
                                                <?php else: ?>
                                                    <li style="cursor: pointer;"><a class="unflaguser" href="<?php echo e($user->id); ?>" id="f<?php echo e($user->id); ?>"><span style="color: red;">UNFLAG USER</span></a>
                                                <?php endif; ?>

                                                <?php if($user->status=='0'): ?>
                                                    <li style="cursor: pointer;"><a class="disableuser" href="<?php echo e($user->id); ?>" id="h<?php echo e($user->id); ?>">DISABLE USER</a>
                                                <?php else: ?>
                                                    <li style="cursor: pointer;"><a class="enableuser" href="<?php echo e($user->id); ?>" id="h<?php echo e($user->id); ?>"><span style="color: green;">ENABLE USER</span></a>
                                                <?php endif; ?>

                                                <li style="cursor: pointer;"><a class="userdelete" href="<?php echo e($user->id); ?>" data-target="#userdelete" data-toggle="modal">DELETE USER</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                            <?php endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

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

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