<link rel="stylesheet" href="<?php echo base_url();?>assets/css/cust_paginition.css" type="text/css" />
<div class="layout-app">
    <div class="container"><div class="row row-app">
            <div class="col-md-12">
                <div class="col-separator col-separator-first col-unscrollable bg-none">
                    <div class="col-table">
                        <div class="row">
                            <div class="">
                                <div class="widget">
                                    <div class="widget-head">
                                        <h4 class="heading">Latest Subscriptions</h4>
                                    </div>
                                    <div class="widget-body innerAll inner-2x">
                                        <table class="table table-white table-vertical-center margin-none table-striped footable">
                                            <thead>
                                            <tr>
                                                <th  data-class="highlight" class="text-center">Subscriber Name</th>
                                                <th data-hide="phone" class="text-center">Email</th>
                                                <th data-hide="phone" class="text-center">Phone</th>
                                                <th class="text-center">Magazine Code</th>
                                                <th class="text-center">Expiry</th>
                                                <th class="text-center">Period</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <?php foreach($magazine_subscriptions as $subscriptions) {?>

                                            <tr>
                                                <td class="text-center" ><?php echo ucwords($subscriptions['first_name']." ".$subscriptions['last_name']); ?></td>
                                                <td class="text-center" ><?php echo $subscriptions['email']; ?></td>
                                                <td class="text-center"><?php echo $subscriptions['phone']; ?></td>
                                                <td class="text-center"><?php echo $subscriptions['magazine_code']; ?></td>
                                                <td class="text-center"><?php echo date("d M Y", strtotime($subscriptions['subscription_end_on'])); ?></td>
                                                <td class="text-center"><?php echo $subscriptions['period']; ?> year(s)</td>
                                            </tr>
                                            <?php } ?>
                                            </tbody>
                                        </table>
                                        <div class="text-center innerAll border-top pagination margin-none" align = "center">
                                            <?php echo $pagination; ?>
                                        </div>
                                        <div class="col-separator-h clearfix"></div>
                                    </div>
                                    <!-- // END TRENDS -->
                                </div>
                                <div class="col-separator-h"></div>
                            </div>

                            
                        </div>
                        <div class="col-separator-h"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="<?php echo base_url(); ?>assets/library/jquery/jquery.min.js"></script>
