<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php echo $page_title; ?> | <?php echo $this->main_model->company_name(); ?></title>
    <!-- Header -->
    <?php $this->load->view('header'); ?>            
</head>
<body>

    <div class="panel panel-default">
    <?php
    $query = $this->main_model->receive_payment($receive_payment_id);
    foreach($query as $row): 
    ?>
        <div class="panel-heading hidden-print">
            <h6 class="panel-title"><i class="fa fa-desktop"></i> Receive Information</h6> 
            <a onclick="window.print();" style="cursor:pointer;" class="pull-right btn btn-circle btn-xs btn-default hidden-print"><i class="fa fa-print"></i> Print</a> 					
        </div>

        <div class="page-setup panel-body">
            <div style="min-height: 700px;">
                
            <p class="text-center hidden-print"><strong style="font-size: 16px;"><?php echo $this->main_model->company_name(); ?></strong><br /></p> 
            
            <br />
            <p class="text-center"><strong style="font-size: 15px;"><u>RECEIVE</u></strong></p>
            <br />
            
            <?php if(!empty($row['date'])): ?>
            <div class="row"><div class="col-xs-3">Date</div>
            <div class="col-xs-9">: <?php echo date('F d, Y', strtotime($row['date'])); ?></div></div> 
            <?php endif; ?> 
            <br />
            
            <?php if(!empty($row['particular'])): ?>
            <div class="row"><div class="col-xs-3">Particular</div>
            <div class="col-xs-9">: <?php echo $row['particular']; ?></div></div> 
            <?php endif; ?>              
            <br />
            
            <?php if(!empty($row['amount'])): ?>
            <div class="row"><div class="col-xs-3">Deposit Tk.</div>
            <div class="col-xs-9">: <?php echo number_format((float)$row['amount'],2,'.',','); ?></div></div> 
            <?php endif; ?>  
            <br />
            
            <?php if(!empty($row['method'])): ?>
            <div class="row"><div class="col-xs-3">Method</div>
            <div class="col-xs-9">: <?php echo $row['method']; ?></div></div> 
            <?php endif; ?>
            <br />
            
            <?php if(!empty($row['bank_cnee'])): ?>
            <div class="row"><div class="col-xs-3">Bank Name/ CNEE</div>
            <div class="col-xs-9">: <?php echo $row['bank_cnee']; ?></div></div> 
            <?php endif; ?>
            <br />
            
            <?php if(!empty($row['account_name'])): ?>
            <div class="row"><div class="col-xs-3">Name of Account</div>
            <div class="col-xs-9">: <?php echo $row['account_name']; ?></div></div> 
            <?php endif; ?>
            <br />
            
            <?php if(!empty($row['account_no'])): ?>
            <div class="row"><div class="col-xs-3">Account No.</div>
            <div class="col-xs-9">: <?php echo $row['account_no']; ?></div></div> 
            <?php endif; ?>
            <br />
            
            <?php if(!empty($row['cheque_no'])): ?>
            <div class="row"><div class="col-xs-3">Cheque No.</div>
            <div class="col-xs-9">: <?php echo $row['cheque_no']; ?></div></div> 
            <?php endif; ?>
            <br />
            
            <?php if(!empty($row['remark'])): ?>
            <div class="row"><div class="col-xs-3">Remark</div>
            <div class="col-xs-9">: <?php echo $row['remark']; ?></div></div> 
            <?php endif; ?>
            <br />
            
            </div>
            
            <p class="text-center"><?php echo $this->main_model->company_address(); ?></p>
            
        </div>
        
    <?php endforeach; ?>
    </div>
</body>
</html>
