  <div class="page-content" >
        <div class="row">
<table class="table table-bordered table-striped table-hover">
    <tr>
        <th>Applicants Name</th>
        <td><span class="editable" id="pay-history"><?php if(!empty($customerinbyid['applicant_name'])){ echo $customerinbyid['applicant_name'];}?></span></td>
        <th>Customer ID</th>
        <td><span class="editable" id="pay-history-id"><?php if(!empty($customerinbyid['customerId'])){ echo $customerinbyid['customerId'];}?></span></td>
    </tr>
    <tr>
        <th>Project Name</th>
        <td><span class="editable" id="ref-id"><?php if(!empty($customerinbyid['project_name'])){ echo $customerinbyid['project_name'];}?></span></td>
        <th>Project Block</th>
        <td><span class="editable" id="customer-block"><?php if(!empty($customerinbyid['projectBlockNo'])){ echo $customerinbyid['projectBlockNo'];}?></span></td>
    </tr>
    <tr>
        <th>Road No</th>
        <td><span class="editable" id="customer-road"><?php if(!empty($customerinbyid['roadNo'])){ echo $customerinbyid['roadNo'];}?></span></td>
        <th>Plot No</th>
        <td><span class="editable" id="customer-plot-no"><?php if(!empty($customerinbyid['plotNo'])){ echo $customerinbyid['plotNo'];}?></span></td>
    </tr>
    <tr>
        <th>Plot Size</th>
        <td><span class="editable" id="customer-plot-size"><?php if(!empty($customerinbyid['plote_size'])){ echo $customerinbyid['plote_size'];}?></span></td>
        <th>Booking Date</th>
        <td><span class="editable" id="book-date"><?php if(!empty($customerinbyid['date'])){ echo $customerinbyid['date'];}?></span></td>
    </tr>
</table>









            <?php if(!empty($extraincomecustomer)){?>
                <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;">Customer Payment History</h3>
                            </div>
                            <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($extraincomecustomer 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; font-size: 16px;"><h6>Total Paid = <?php echo $countAmount;?></h6></td>
                                        <td ></td>
                                        <td style="color:red; font-size: 16px;">
                                            <h6>Total Due =  <?php echo ($customerinbyid['total_cost']-$countAmount);?></h6>
                                        </td>
                                        <td ></td>
                                        <td ></td>

                                    </tr>

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