    <div class="panel panel-default">
    
        <div class="panel-heading hidden-print">
            <h6 class="panel-title"><i class="fa fa-desktop"></i> Teacher Leave Report</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="panel-body">

            <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>INDIVIDUAL LEAVE REPORT</u></strong></p>
            
             <div class="row" style="border-bottom: 1px solid #eee;">
                <div class="col-xs-6">
                    <strong>From Date: <?php echo date('d.m.Y', strtotime($fdate)); ?></strong> 
                </div>
                <div class="col-xs-6" style="text-align:right">
                    <strong>To Date: <?php echo date('d.m.Y', strtotime($tdate)); ?></strong> 
                </div>
            </div>     
           
               <br>  <br>     
                       
            <div style="min-height: 200px;">
                <div class="row">
                    <div class="col-xs-12">						
                        <table class="table table-bordered">
                            <thead><tr>
                                <td align="center"><strong>SL No.</strong></td> 
                                <td align="center"><strong>Teacher Name </strong></td> 
                                <td align="center"><strong>Designation </strong></td> 
                                <td align="center"><strong>Leave Date & Time</strong></td> 
                                <td align="center"><strong>Remarks</strong></td> 
                                
                            </tr></thead>
                            <tbody> 
                               <?php 
							   
    $sl_no = 1; 
	$this->db->where('date>=', $fdate);
	$this->db->where('date<=', $tdate);
    $query = $this->main_model->teacherleave($user_ID);
    foreach($query as $row): 
	 
    ?>
                                <tr class="item-row">
                                    <td align="center"><?php echo $sl_no; ?></td> 
									<?php 
                        $queryt = $this->main_model->teacher7($user_ID);
                        
                        ?>
                                    <td>
									<?php foreach($queryt as $rowt): ?>
									<?php $designation=$rowt['designation']; ?>
									<?php echo $rowt['name']; ?>
									
									</td>
									
									<?php 
									$this->db->where('did=', $designation);
                        $queryd = $this->main_model->desig();
                        
                        ?>
									<?php foreach($queryd as $rowd): ?>
                                    <td align="center"><?php echo $rowd['name']; ?></td>
									<?php endforeach; ?>
									<?php endforeach; ?>
                                    <td align="center"><?php echo $row['date']; ?></td>
                                    <td align="center"><?php echo $row['remark']; ?></td>
                                </tr>
								<?php $sl_no=$sl_no+1; ?>
                                <?php endforeach; ?>
                                                               
                            </tbody>
                        </table> 
                    </div>
                </div>
              
                 
            </div>
            <br> <br> 
	    <div class="row">
                <div class="col-xs-4 text-center">______________________</br>Prepared By</div>												
                <div class="col-xs-4 text-center">______________________<br/>Checked By</div>												
                <div class="col-xs-4 text-center">______________________<br/>Approved By</div>						
            </div>
            
            <br />
            <div class="hidden-print text-center">
                <strong><?php echo $this->main_model->company_address();?></strong>
            </div>
          
            
        </div>
        
 
    </div>
