   <div class="page-content" >
                        <div class="row">
                         <?php
                                $message = $this->session->userdata('message');
                                if (!empty($message)) {
                                    ?>
                                    <div class="alert alert-block alert-success">
                                        <h6 class="lighter arial green"><b>
                                                <?php echo $message;
                                                $this->session->unset_userdata('message');
                                                ?>
                                            </b></h6>
                                    </div>
                                    <?php
                                }
                                $errormessage = $this->session->userdata('errormessage');
                                if (!empty($errormessage)) {
                                    ?>
                                    <div class="alert alert-block alert-danger">
                                        <h6 class="lighter arial red"><b>
                                                <?php echo $errormessage;
                                                $this->session->unset_userdata('errormessage');
                                                ?>
                                            </b></h6>
                                    </div>
                                    <?php
                                }
                                ?>

                    <?php if(!empty($allincome)){?>
                            <div class="col-xs-12">
                                <div class="row">
                                    <div class="col-xs-12">


                                        <div class="clearfix">
                                            <div class="pull-right tableTools-container"></div>
                                        </div>
                                        <div class="table-header" style="height:60px;" >
                                           <h3 style="text-align:center;" >Your Payment History <br>
                                               Name : <span id="pay-history"><?php echo $basic_info['applicant_name'];?></span> and Id : <span id="pay-history-id"><?php echo $basic_info['customerId'];?></span> </h3>
                                        </div>
                                        <table class="table table-bordered table-striped table-hover">
                                            <tr>
                                                <td>Project Name</td>
                                                <td><span id="project"><?php echo $basic_info['project_name'];?></span></td>
                                                <td>Booking Date</td>
                                                <td><span id="book-date"><?php echo $basic_info['date'];?></span></td>
                                            
                                                <td>Project Block</td>
                                                <td><span id="customer-block"><?php echo $basic_info['projectBlockNo'];?></span></td>
                                        </tr>
                                        <tr>
                                                <td>Road No</td>
                                                <td><span id="customer-road"><?php echo $basic_info['roadNo'];?></span></td>
                                           
                                                <td>Plot No</td>
                                                <td><span id="customer-plot-no"><?php echo $basic_info['plotNo'];?></span></td>
                                                <td>Plot Size</td>
                                                <td><span id="customer-plot-size"><?php echo $basic_info['plote_size'];?></span></td>
                                            </tr>
                                        </table>

                                        <div>

                                            <div id="print-content">
                                            <table id="dynamic-table" class="table table-striped table-bordered table-hover">
                                                <thead>

                                                    <tr style="color:red;">

                                                        <th style="color:red;">Serial</th>
                                                        <!-- <th style="color:red;">CustomerId </th>
                                                        <th  style="color:red;">Customer Name</th>-->
                                                        <th >Date</th>
                                                        <th style="text-align:center;">
                                                            Amount
                                                        </th>
                                                        <th>Payment Type</th>
                                                        <th>Payment Process</th>




                                                        <th>
                                                            Payment Description
                                                        </th>
                                                        <th style="color:red;">
                                                            Receiver Id & Name
                                                        </th>

                                                    </tr>
                                                </thead>

                                                <tbody>

                                <?php
                                $i=0;
                                $countAmount=0;
                                foreach($allincome as $value){?>

                                <tr>

                                    <!-- <td style="color:red;"><?php //echo ++$i.'  .';?>
                                    Id :<?php //echo $value['customerId'];?></td>
                                    <td >Name:
                                            <?php
                                             //echo getlandCustomerNameById($value['customerId'])['applicant_name'];

                                            ?>
                                    </td> -->
                                    <td style="color:red;"><?php echo ++$i;?></td>

                                    <td><?php  echo $value['date'];?></td>

                                    <td style="text-align:center;">
                                        <?php  echo $value['amount'];
                                            $countAmount=$countAmount + $value['amount'];
                                        ?>
                                    </td>
                                    <td>
                                        <?php
                                        if(!empty($value['payment_type']))
                                        {
                                            foreach(getPaymentType() as $key=>$val)
                                            {
                                                if($value['payment_type']==$key){echo $val;}
                                            }
                                        }
                                        ?>
                                    </td>
                                    <td >
                                        <?php
                                        if(!empty($value['paymentProcess']))
                                        {
                                            foreach(getPaymentProcess() as $key=>$val)
                                            {
                                                if($value['paymentProcess']==$key){echo $val;}
                                            }
                                        }
                                        ?>
                                    </td>


                                <td><?php  echo $value['payment_description'];?></td>
                                <td style="color:red;">
                                    Id:<?php  echo $value['receiver_id'].'</br>';?>
                                    Name :<?php $usrnm=getEmployeeById($value['receiver_id']);  echo $usrnm['userName']?>
                                </td>
                                </tr>
                <?php }?>
                                                    <tr>
                                                    <td ></td>
                                                    <td ></td>
                                                    <td style="color:green;">
                                                        <h6>Paid = <?php echo $countAmount;?></h6>
                                                    </td>
                                                    <td ></td>
                                                    <td style="color:red;">
                                                        <h6>Due =  <?php echo ($total_cost-$countAmount);?></h6>
                                                    </td>
                                                    <td ></td>
                                                    <td ></td>

                                                    </tr>

                                                </tbody>

                                            </table>
                                        </div>
                                        </div>
                                    </div>
                                </div>
                                <br>
                                <button type="button" onclick="printDiv('print-content')" class="btn btn-success pull-right">Print Payment List</button>
                                </div><!-- PAGE CONTENT ENDS -->
                                <?php }?>
                            </div><!-- /.col -->
                        </div><!-- /.row -->


