
    <!-- Information -->
    <div class="widget">
        <h5 class="heading-underline"><i class="fa fa-columns"></i>All Information at A Galance</h5>
        <div class="tabbable">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#default-tab1" data-toggle="tab">Class</a></li>
                <li><a href="#default-tab2" data-toggle="tab">Designation</a></li>
                <li><a href="#default-tab3" data-toggle="tab">Teacher</a></li>
                <li><a href="#default-tab4" data-toggle="tab">Student</a></li>
                <!--<li><a href="#default-tab5" data-toggle="tab">Payment</a></li>-->
            </ul>
            <div class="tab-content has-padding">
                <!-- Order Info. -->
                <div class="tab-pane fade in active" id="default-tab1">
                    <div class="panel panel-default">
                        <div class="datatable">
                            <table class="table table-striped">
                                <thead><tr>
                                    <th>Class ID</th>                        
									<th>Name</th>                        
									
                                </tr></thead>
                                <tbody>
                                <?php
                                $query_freight = $this->main_model->sclass();
                                foreach($query_freight as $row_freight):
                                ?>
                                    <tr>
                                        <td><?php echo $row_freight['scid']; ?></td>
                                        <td><?php echo $row_freight['name']; ?></td>
                                      </tr>
                                <?php endforeach; ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <!-- /Order Info. --> 
                <!-- Debit Note -->
                <div class="tab-pane fade" id="default-tab2">
                    <div class="panel panel-default">
                        <div class="datatable">
                            <table class="table table-striped">
                                <thead><tr>
                                    <th>Desig ID</th>                        
                        <th>Name</th>   
                                </tr></thead>
                                <tbody>
                                    <?php 
                                    $query_debit = $this->main_model->desig();
                                    foreach($query_debit as $row_debit):
                                    ?>
                                    <tr>
                                        
                                        <td><?php echo $row_debit['did']; ?></td>
                                        <td><?php echo $row_debit['name']; ?></td>
                                        </tr>
                                    <?php endforeach; ?>
                                </tbody>
                            </table>
                        </div>
                    </div> 
                </div> 
                <!-- /Debit Note --> 
                <!-- Credit Note -->
                <div class="tab-pane fade" id="default-tab3">
                    <div class="panel panel-default">
                        <div class="datatable">
                            <table class="table table-striped">
                                <thead><tr>
                                    <th>Machine ID</th>                        
                        <th>Name</th>   
						<th>Designation</th>
						<th>Mobile</th>
						<th>Email</th>
						<th>Education</th>
                                </tr></thead>
                                <tbody>
                                    <?php 
                        $query = $this->main_model->teacher();
                        foreach($query as $rowt):
                        ?>
                                    <tr>
                                        <td><?php echo $rowt['mcid']; ?></td>
							<td><?php echo $rowt['name']; ?></td>
							<td>
							
							<?php 
									$query111 = $this->main_model->desig();
									foreach($query111 as $row123):
								?>
								<?php if($rowt['designation']==$row123['did']): ?><?php echo $row123['name']; ?><?php endif; ?>
                            <?php endforeach; ?>
							
							
							
							</td>
							<td><?php echo $rowt['mobile']; ?></td>
							<td><?php echo $rowt['email']; ?></td>
                            <td><?php echo $rowt['education']; ?></td>
                                    </tr>
                                    <?php endforeach; ?>
                                </tbody>
                            </table>
                        </div>
                    </div> 
                </div> 
                <!-- /Credit Note -->                 
                <!-- Receive -->
                <div class="tab-pane fade" id="default-tab4">
                    <div class="panel panel-default">
                        <div class="datatable">
                            <table class="table table-striped">
                                <thead><tr>
                                     <th>Machine ID</th>                        
                        <th>Name</th>   
						<th>Class</th>
						<th>Shift</th>
						<th>Mobile</th>
						<th>Father</th>
						<th>Mother</th>
                                </tr></thead>
                                <tbody>
                                      <?php 
                        $query = $this->main_model->student();
                        foreach($query as $rowst):
                        ?>
                        <tr>
                            <td><?php echo $rowst['mcid']; ?></td>
							<td><?php echo $rowst['name']; ?></td>
							
							<td>
							
							<?php 
									$query111 = $this->main_model->sclass();
									foreach($query111 as $row123):
								?>
								<?php if($rowst['cname']==$row123['scid']): ?><?php echo $row123['name']; ?><?php endif; ?>
                            <?php endforeach; ?>
							
							- <?php echo $rowst['section']; ?>
							
							</td>
							<td><?php echo $rowst['shift']; ?></td>
							<td><?php echo $rowst['mobile']; ?></td>
							<td><?php echo $rowst['father']; ?></td>
                            <td><?php echo $rowst['mother']; ?></td>
                           
                        </tr>
                        <?php endforeach; ?>
                                </tbody>
                            </table>
                        </div>
                    </div> 
                </div> 
                <!-- /Receive -->                 
                <!-- Payment -->
                <div class="tab-pane fade" id="default-tab5">
                    <div class="panel panel-default">
                        <div class="datatable">
                            <table class="table table-striped">
                                <thead><tr>
                                    <th>Date</th>                        
                                    <th>Particular</th>                        
                                    <th>Payment Tk.</th>
                                </tr></thead>
                                <tbody>
                                    <?php 
                                    $query_payment = $this->main_model->payment();
                                    foreach($query_payment as $row_payment):
                                    ?>
                                    <tr>
                                        <td><?php echo date('M d, Y', strtotime($row_payment['date'])); ?></td>
                                        <td><?php echo $row_payment['particular']; ?></td>
                                        <td class="text-right"><?php echo number_format((float)$row_payment['amount'],'2','.',','); ?></td>
                                    </tr>
                                    <?php endforeach; ?>
                                </tbody>
                            </table>
                        </div>
                    </div> 
                </div> 
                <!-- /Payment -->                 
                
            </div>
        </div>
    </div>
    <!-- /Information --> 
