<?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">Course Submission</a></li>
														
							</ul>
		                <div class="tab-content">
			    <div class="tab-pane fade in active" id="stugeneralinfo">
								
									<!-- Customer Information-->
						<form action="" id="" class="sky-form" method="post">
							<header><?= $detail[0]->id ?></header>
                            <header><?= $detail[0]->title ?></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> <?= "Course Registration ".$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>Name</th>
                                        <th>Registration Number</th>
                                        <th>CA</th>
                                        <th>Exam</th>
                                        <th>Total</th>
                                        </tr>
                                </thead>
                                <tbody>
                                <?php $i = 0; ?>
                                <?php if(!empty($submission)): ?>		
                                    <?php foreach($submission as $res): ?>
                                      
                                      <tr>
                                      <td><?= $i = $i + 1; ?></td>                     
                                      <td><?= $res->first_name?> <?= $res->middle_name?> <?= $res->last_name?></td>
                                      <td><?= $res->reg_no?></td>
                                      <td><?= $res->ca_marks?></td>
                                      <td><?= $res->exam_marks?></td>
                                      <td><?= $res->total_marks?></td>                    
                                      </tr>
                                      <!-- <a href = "#exampleModal" data-decision = "Approved" data-user_id = "" data-toggle="modal"  data-whatever="helo" class = "approve" id = "approve" data-whatever=""><i class="fas fa-edit"></i></a></button> --> 
                                    <?php endforeach; ?>	
                                  <?php endif; ?>
                       
                                </tbody>
                            </table>
	
                        </div>                  
                    </div>
                    <!--End Striped Rows-->

							
                    

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

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

		    </div>


            <div class="modal" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Edit</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
       <form  action = "" method = "post">
        
         
          <div class="form-group">
            <label for="message-text" class="col-form-label">Course:</label>
            <select class="form-control" name = "decision">
              <option value = "">Select Course</option>
              
              </select>
          </div>  
          
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="submit" onclick = "return confirm('Are you sure you perform this operation?')" class="btn btn-primary">Save</button>
      </div>
      </form>
    </div>
  </div>
</div>