<?php $session = \Config\Services::session(); ?>
<div class="profile">	
        <div class="container content">
        	<div class="row">  
                <div class="col-md-12">
<div class="tab-v1">
							<ul class="nav nav-tabs">
								<li class="active"><a href="#stugeneralinfo" data-toggle="tab">Students</a></li>
														
							</ul>
		                <div class="tab-content">
			    <div class="tab-pane fade in active" id="stugeneralinfo">
								
									<!-- Customer Information-->
						<form action="<?= base_url('levelcoordinator/student_course_registrations') ?>" id="" class="sky-form" method="post">
							<header>Result Summary</header>
							<fieldset>
							
							
						 <!--Conference Schedule Tables-->
                <div class="row">
                    <!--Striped Rows-->
                    <div class="col-md-12 table-responsive" > 
                        <div class="panel panel-blue margin-bottom-40"  >
                            <div class="panel-heading" align="center" style="background:#2b89c0;">
                                <h3 style="color:#fff;" class="panel-title"><i class="fa fa-star"></i> <i class="fa fa-star"> </i> <i class="fa fa-star"></i> <?= $session->get('programme_id')." ".$session->get('level')." Level,  ".$session->get('session')." Session"; ?> <i class="fa fa-star"></i> <i class="fa fa-star"></i><i class="fa fa-star"></i></h3>
                            </div>
                            <table id="mycourse_tbl1" class="table table-bordegreen table-striped" >
                                <thead>
                                    
                                    <tr>
                                        <th>S/N</th>
										<th>Reg. Number</th>
                                        <th>Full Name</th>
                                        <th>TCR</th>
                                        <th>TCE</th>
                                        <th>GPA</th>
                                        <?php if($semester == '2nd'): ?>
                                            <th>CGPA</th>
                                        <?php endif; ?>
                                        <th>Course(s) to carry over</th>
                                        <th>Remarks</th> 
                                        </tr>
                                </thead>
                                <tbody>
                                    <?php $i = 0 ?>
                                <?php foreach($result as $res): ?>
                                    <tr>
                                        <td><?= $i = $i + 1; ?></td>
                                        <td><?= $res->registration_no?></td>
                                        <td><?= $res->first_name." ".$res->middle_name." ".$res->last_name?></td>
                                        <td><?= $res->tcr ?></td>
                                        <td><?= $res->tce ?></td>
                                        <td><?= $res->gpa ?></td>
                                        <?php if($semester == '2nd'): ?>
                                            <td><?= $res->cgpa ?></td>
                                        <?php endif; ?>
                                        <td><?= $res->carry_over ?></td>
                                        <td><?= $res->remark ?></td>
                                    </tr>
                                <?php endforeach; ?>	
                                </tbody>
                            </table>
	
                        </div>                  
                    </div>
                    <!--End Striped Rows-->

							
                    

					</fieldset>
						</form>
								</div>
	</div>
						</div>

		    </div>
			
			</div>
						</div>

		    </div>