<?php  $this->load->view('master/common/header.php',$data);
$base_name = $data['base_name'];
?>

    <div class="content">
        
        <!-- Start Content-->
        <div class="container-fluid">
            
            <!-- start page title -->
            <div class="row">
                <div class="col-12">
                    <div class="page-title-box">
                        <div class="page-title-right">
                            <ol class="breadcrumb m-0">
                                <li class="breadcrumb-item"><a class="btn btn-success btn-sm" href="<?=base_url().'master/customer/create';?>">Fund Request</a></li>
                                
                            </ol>
                        </div>
                        <h4 class="page-title text-uppercase"><?= $page;?></h4>
                    </div>
                </div>
            </div>     
            <!-- end page title --> 

            <div class="row">
                <div class="col-md-12 col-xl-12">
                    <div class="card-box">
                        <div class="row">
                            <div class="col-sm-12">
							    <table id="key-table" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
                                    <thead>
                                        <tr>
                                            <th>#</th>
        									<th>Date/Time</th>
        									<th>Description</th>
        								
        									<th>Type</th>
        									<th>Pre</th>
        									<th>Amount </th>
        									<th>Balance</th>
                                        </tr>
                                    </thead>


                                        <tbody>
                                        
								<?php if (!empty($pasbooks)) {
								    $i=0;
								?>
								
									<?php 
									
									//`note`, `addon`, `type`, `pre`, `amount`, `balance`, `date`
									foreach ($pasbooks as $row) {
									$i++;
									?>
								        <tr>
                                            <td><?=$i;?></td>
        								
        									<td><?=date('d-m-Y H:i:s',strtotime($row['addon']))   ;?></td>
        									<td><?=$row['note'];?></td>
        									<td><?=$row['type'];?></td>
        									<td><?=$row['pre'];?></td>
        									<td><?=$row['amount'];?></td>
        									<td><?=$row['balance'];?></td>
        								
        								
        								</tr>
								<?php }?>
								<?php } else {?>
								<tr>
									<td colspan="7" class="text-center">Records Not Found</td>
								</tr>
								<?php }?>
							</tbody>
							</table>
							</div>
					    </div>
					</div>
				</div>
				<!-- /.col-md-6 -->
			</div>
			<!-- /.row -->
		</div>
		<!-- /.container-fluid -->
	</div>
	<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php $this->load->view('master/common/footer.php'); ?>

<script type="text/javascript">
	function deletecustomer() {
		if (confirm("Are You Sure You Want TO Delete Shipping Cost ?")) {
            return true;
		}
		return false;
	}
</script>