<link rel="stylesheet" href="<?php echo base_url();?>assets/css/cust_paginition.css" type="text/css" />
<div id="addMagezine">
    <div class="modal-dialog">
        <div class="modal-content">
            <!-- Modal heading -->
            <!-- // Modal heading END -->
            <!-- Modal body -->
            <div class="modal-body">

                <div class="innerAll">
                    <div class="innerLR">
                        <div id="print_div">
                            <div class="navbar-header">
                                <a id="logo" href="<?php echo base_url(); ?>" class="pull-left">
                                    <img src="<?php echo base_url(); ?>assets/images/logo/sub-logo.jpg" />
                                    <h4 align="center">Subscription Management System</h4>
                                </a>

                            </div>

                            <div style="clear: both"></div>

                            <div class="modal-header">
                                <h4 class="modal-title" align="center">Invoice</h4>
                            </div>
                            <div style="clear: both"></div>

                            <div>
                                <table class="table table-white table-vertical-center margin-none table-striped footable" >
                                    <thead>
                                    <tr>
                                        <th class="text-center">Magazine Id:</th>
                                        <th class="text-center">Number of Issue:</th>
                                        <th class="text-center">Magazine Amount:</th>
                                        <th class="text-center">Total Amount:</th>
                                        <th class="text-center">Payment Method:</th>
                                        <th class="text-center">Payment Date:</th>
                                        <th class="text-center">Start Issue:</th>
                                        <th class="text-center">End Issue:</th>
                                    </tr>
                                    <tr>
                                        <td class="text-center"><?php echo $arrData['magezine_id'] ?></td>
                                        <td class="text-center"><?php echo $arrData['end_issue'] - $arrData['start_issue'];?></td>
                                        <td class="text-center"><?php echo $arrData['total_amount']." ".$arrData['currency'];?></td>
                                        <td class="text-center"><?php echo $arrData['total_amount']." ".$arrData['currency'];?></td>
                                        <td class="text-center"><?php echo date("d M Y", strtotime($arrData['date'])) ?></td>
                                        <td class="text-center"><?php echo $arrData['sub_name'] ?></td>

                                    </tr>
                                    <tr>
                                        <td class="text-center">Magazine Id:</td>
                                        <td class="text-center"><?php echo $arrData['mag_id'] ?></td>

                                    </tr>
                                    <tr>
                                        <td class="text-center">Transaction Date:</td>
                                        <td class="text-center"><?php echo date("d M Y", strtotime($arrData['date'])) ?></td>

                                    </tr>
                                    <tr>
                                        <td class="text-center">Campaign Code:</td>
                                        <td class="text-center"><?php echo ($arrData['promo_code'])?$arrData['promo_code']: "-"; ?></td>

                                    </tr>
                                    <tr>
                                        <td class="text-center">Start Issue:</td>
                                        <td class="text-center"><?php echo ($arrData['start_Issue'])?$arrData['start_Issue']: "-"; ?></td>

                                    </tr>
                                    <tr>
                                        <td class="text-center">End Issue:</td>
                                        <td class="text-center"><?php echo ($arrData['end_Issue'])?$arrData['end_Issue']: "-"; ?></td>

                                    </tr>
                                    </thead>
                                </table>
                            </div>
                            <div style="clear: both"></div>
                            <hr>
                            <br>
                            <br>
                            <div class="modal-header">
                                <h5 class="modal-title" align="center">Payment details</h5>
                            </div>

                            <div>

                                <table class="table table-white table-vertical-center margin-none table-striped footable" border="1">
                                    <thead>
                                    <tr>

                                        <th  class="text-center">Magazine Name</th>
                                        <th data-hide="phone" class="text-center">No of year</th>
                                        <th data-hide="phone" class="text-center">Magazine Amount</th>
                                        <th data-hide="phone" class="text-center">Campaign Code</th>
                                        <th class="text-center">Total Amount</th>
                                    </tr>
                                    <tr>

                                        <td class="text-center"><?php echo $arrData['mag_name'] ?></td>
                                        <td class="text-center"><?php echo $arrData['year'] ?></td>
                                        <td class="text-center"><?php echo $arrData['mag_amount'] ?></td>
                                        <td class="text-center"><?php echo ($arrData['promo_code'])?$arrData['promo_code']: "-"; ?></td>
                                        <td class="text-center"><?php echo $arrData['total_amount']." ".$arrData['currency'];?></td>
                                    </tr>

                                    </thead>
                                </table>
                            </div>
                            <br>
                            <br>



                            <hr>
                            <div class="modal-header">
                                <h5 class="" align="right">Magazine Amount : <?php echo $arrData['mag_amount']." ".$arrData['currency']; ?></h5>
                            </div>
                            <hr>
                           <div class="modal-header">
                                <h5 class="" align="right">Total Due : <?php echo $arrData['total_amount']." ".$arrData['currency']; ?></h5>
                            </div>
                        </div>
                        <hr>
                        <br><br>
                        <h5 class="" align="right"><small>Thank you for choosing Subscription Management System<small></small></h5>

                        </div>
                    <br><br>
                    
                    <br>
                </div>
            </div>

        </div>
    </div>
</div>


<script src="<?php echo base_url();?>assets/js/main.js" type="text/javascript"></script>
