<!--onLoad="window.print()"-->
 <div style="top:2px;" class="panel-tools open">
      <button data-toggle="dropdown" class="btn btn-blue dropdown-toggle" onClick="window.print()"> <i class="fa fa-print">Print</i> </button>
    </div>
<body onLoad="window.print()">


<style type="text/css">
h3
{
	margin-top:10px;
}
th{
	text-align:center !important;
}
.report_view_th{
	color:#000 !important;
	text-align:center !important;	
}
body{
	background-color:#fff !important;
	font-size:12px;
	
}
p{
	margin:0;
}
.modal-body {
  padding: 2px 15px 15px;
  position: relative;
}
body .modal {
/* new custom width */
width: 750px;
/* must be half of the width, minus scrollbar on the left (30px) */
margin-left: -375px;
}
.print-table td, th{
	padding:1px;
	vertical-align:top !important;
}
thead { display: table-header-group; }
tfoot { display: table-footer-group; }
.width_cus{
	width:100px !important;
}
.width_qty{
	width:100px !important;
}
</style>


<?php $this->load->view("common/report_header"); ?>
<div class="">
  <div class="modal-body">
   
   <div class="col-xs-4 border-right">
    <h4 style="margin-top:10px;">Customer Details</h4>
                <div class="col-xs-2"><i class="fa fa-3x fa-user padding010 text-muted"></i></div>
                <div class="col-xs-10">
                  <h4 class=""><?php echo $customer_details['cus_name']; ?></h4>
                  <?php echo $customer_details['cus_address']; ?><br>
                  <p></p>
                  Tel: <?php echo $customer_details['cus_mobile']; ?> &nbsp; <?php echo $customer_details['cus_mobile_2']; ?> &nbsp; <?php echo $customer_details['cus_home_phone']; ?> <br>
                  Email: <?php echo $customer_details['cus_email']; ?> </div>
                <div class="clearfix"></div>
              </div>
              <div class="clearfix"></div>
            </div>
    <!--row-->
    
   
     <div class="col-xs-10">
                  <h4 class="">Reference ID : <?php echo $loan_details->loan_ref;?></h4>
                  <p>Date: <?php echo display_date_time_format($loan_details->loan_date)?></p>
                </div>
                <div class="clearfix"></div>
              </div>
              <div class="col-xs-4 border-right">
                <div class="col-xs-2"><i class="fa fa-3x fa-file-text-o padding010 text-muted"></i></div>
                <div class="col-xs-10">
                  <h4 class="">Total Amount : <?php echo number_format($loan_details->loan_tot_amount, 2, '.', ',') ?></h4>
                  <p>Interest : <?php echo $loan_details->loan_interest;?> %</p>
                  <p>Payment Term  : <?php echo $loan_details->loan_payment_term;?> Days</p>
                  <p>No. of Terms : <?php echo $loan_details->loan_no_of_terms;?></p>
                  <p>Term Amount : <?php echo number_format($loan_details->loan_term_amount, 2, '.', ',') ?></p>
                  <p>Payable Total Amount : <?php echo number_format($loan_details->loan_payable_total_amount, 2, '.', ',') ?></p>
                 
                </div>
    
      <?php /*?>
    <!--Start Booking Menu Items-->
     <div class="well well-sm">
              <div class="col-xs-4 border-right">
                <div class="col-xs-2"><i class="fa fa-3x fa-file-text-o padding010 text-muted"></i></div>
                <div class="col-xs-10">
                  <h4 class="">Collected Loan </h4>
                  
                  <!-- Cal paid %  start -->
                  <?php 

if($loan_details->loan_payable_total_amount >0 )
{
	$payble_amount=$loan_details->loan_payable_total_amount;
}
else
{
	$payble_amount=0;
}

if($total_paid_loan>0 )
{
	$total_paid_loan=$total_paid_loan;
}
else
{
	$total_paid_loan=0;
}

$presentage=($total_paid_loan/$payble_amount)*100;

$loan_tot_amount=$loan_details->loan_tot_amount;
$interst_tot_amount=$loan_details->loan_payable_total_amount-$loan_details->loan_tot_amount;
$collected_interest=round(($interst_tot_amount/100)*$presentage,2);
$collected_capital=round(($loan_tot_amount/100)*$presentage,2);
?>                  
                  <!-- Cal paid % End -->                  
                  <p>Collected Capital: <?php echo $collected_capital;?></p>
                  <p>Collected Interest : <?php echo $collected_interest;?></p>
                  <p>Loan Collected : <?php echo $collected_capital+$collected_interest; ?> (<?php echo round($presentage,2);?> %)</p>
                </div>
                <div class="clearfix"></div>
              </div>
              <div class="col-xs-4 border-right">
                <div class="col-xs-2"><i class="fa fa-3x fa-file-text-o padding010 text-muted"></i></div>
                <div class="col-xs-10">
                  <h4 class="">Collectable Loan</h4>
                  <p>Collectable Capital: <?php echo $loan_tot_amount-$collected_capital;?></p>
                  <p>Collectable Interest : <?php echo $interst_tot_amount-$collected_interest;?></p>
                  <p>Loan Collectable  :<?php echo ($loan_tot_amount-$collected_capital)+($interst_tot_amount-$collected_interest); ?> (<?php echo round(100-$presentage,2);?> %) </p>
                </div><?php */?>

    <!--table-responsive--> 
    
    <!--End Booking Menu Items--> 
    
  </div>
</div>
</div>
<div class="clearfix"></div>
<!-- end payment list-->

<div class="row">
  <div class="col-xs-12">
    <div class="row">
    
      <div class="col-xs-12">
        <div class="col-xs-12"> Note:  <br>
          <br>
        </div>
      </div>
   
      <div class="col-xs-12">
        <div class="col-xs-8"> Prepared by: <br>
          <br>
          ................... <br>
           </div>
        <!--col-xs-4--> 
        
        <!--<div class="col-xs-4"> Authorized by: <br>
<br>
......................
<br>
</div> --><!--col-xs-4-->
        
        <div class="col-xs-4 pull-right">Customer<br>
          <br>
          ............................. <br>
        </div>
        <!--col-xs-4--> 
      </div>
      <!--col-xs-12-->
      
      <div class="row">
        <p class="text-center"> <br>
        <div class="our_com_des"> Developed by: Sallelanka Solutions (pvt) Ltd.<br>
          Tel. +94776520755 WEB:www.sallelanka-solutions.com </div>
        </p>
      </div>
      <!--row--> 
      
    </div>
  </div>
</div>

<!--/.col-md-12-->

</body>
