<?= $this->extend("templates/hod_base"); ?>

<?= $this->section("content"); ?>
                <?php $page_session = \Config\Services::session(); $pg='vca';?>
<!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?= base_url()?>/lecturer/dashboard">Dashboard</a></li>
              <li class="breadcrumb-item active">Staff</li>
            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->

    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">  
        <div class="row">
            <div class="col-12 table-responsive">
            <div class="card">
              <!-- /.card-header -->
              <div class="card-header">
                <h3 class="card-title"><b><i class="fa fa-users"></i> All Staff</b></h3>
              </div>
              <div class="card-body">
              	<table id="staff_tbl" class="table table-bordered table-hover table-striped" >
                	<thead>
                    	<tr>
	                        <th>S/N</th>
							<th>Staff Number</th>
	                        <th>Name</th>
							<th>Gender</th>
	                        <th>Qualification</th>
	                        <th>Rank</th>                         
						</tr>
	                </thead>
                    <tbody>
						<?php 
						$i = 0;	
                        if(!empty($result)): 
                  		foreach($result as $res): ?>
                    
	                    <tr>
		                    <td><?= $i = $i + 1; ?></td>                     
		                    <td><?= $res->stfN?></td>
		                    <td><?= $res->first_name.' '.$res->last_name?></td>
		                    <td><?= $res->sex ?></td>
		                    <td><?= $res->qualification ?></td>
		                    <td><?= $res->qualification?></td>
                        </tr>
                      
                       <?php endforeach;
                        endif; ?>

                    </tbody>
              	</table>
              </div>
              <!-- /.card-body -->
            </div>
            <!-- /.card -->
            </div>
        </div>

        </div><!-- /.container-fluid -->
    </section>
<!-- /.content -->
</div>


<?= $this->endSection(); ?>
