           
<div class="panel panel-default">
    <?php
    $query = $this->main_model->student_info($sID);
    foreach ($query as $row):
        ?>
        <div class="panel-heading">
            <h6 class="panel-title"><i class="fa fa fa-align-justify"></i> Student Information | Edit</h6>
            <a href="<?php echo site_url('everbright/student'); ?>" class="pull-right btn btn-circle btn-xs btn-default"><i class="fa fa-step-backward"></i> Back</a>
        </div>

        <div class="panel-body">
            <form action="<?php echo site_url('everbright/student/edit/' . $row['sID']); ?>" method="post" class="form-horizontal validate" role="form"> 

            <div class="row">
					<div class="col-md-6">                   
						<div class="form-group">
							<label class="col-sm-4 control-label text-right"><span>Student Unique ID</span><span class="mandatory">*</span></label>
							<div class="col-sm-8">
								<input type="text" class="required  form-control " placeholder="Student Unique ID" name="jbID"  value="<?php echo $row['jbID']; ?>">
							</div>
						</div> 
					</div>
					<div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right"><span>Class Roll</span><span class="mandatory">*</span></label>
                        <div class="col-sm-8">
                            <input type="text" class="required  form-control " placeholder="Class Roll" name="stID"  value="<?php echo $row['stID']; ?>">
                        </div>
                    </div> 
                </div>
                <!-- Date -->
                
                                 
            </div>
			<div class="row">
				<div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right"><span>Session</span><span class="mandatory">*</span></label>
                        <div class="col-sm-8">
                            <input type="text" class="required  form-control " placeholder="Session" name="s_session" value="<?php echo $row['s_session']; ?>">
                        </div>
                    </div> 
                </div>
					<div class="col-md-6">                   
						<div class="form-group">
							<label class="col-sm-4 control-label text-right"><span>Full Name</span><span class="mandatory">*</span></label>
							<div class="col-sm-8">
								<input type="text" class="required  form-control " placeholder="Full Name" name="name"  value="<?php echo $row['name']; ?>">
							</div>
						</div> 
					</div>
                <!-- Date -->
                
                                 
            </div>
            <div class="row">
                <!-- ATTN -->
                <div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right">Father<span class="mandatory">*</span> </label>
                        <div class="col-sm-8">
                            <input type="text" class="required  form-control" placeholder="Father" name="f_name"  value="<?php echo $row['f_name']; ?>">
                        </div>
                    </div> 
                </div> 
                <!-- SHIPPER -->
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4 text-right">Mother<span class="mandatory">*</span> </label>
                        <div class="col-md-8">
                            <input type="text" class="required  form-control" placeholder="Mother" name="m_name"  value="<?php echo $row['m_name']; ?>">
                        </div>
                    </div>
                </div>                    
            </div>          
            <div class="row">
                <div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right">Date of Birth <span class="mandatory">*</span></label>
                        <div class="col-sm-8">
                            <input type="text" class="required form-control datepicker" placeholder="Date of Birth" name="dob"  value="<?php echo $row['dob']; ?>">
                        </div>
                    </div> 
                </div>
				<?php 
                        
                        
                        ?>
                <div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right">Class<span class="mandatory">*</span></label>
                        <div class="col-sm-8">
                            <select data-placeholder="(:-- Select Class --:)" name="class_name" class="required select-search">
                               
							   
								 <?php 
									$query111 = $this->main_model->sclass();
									foreach($query111 as $row123):
								?>
									
									<option value="<?php echo $row123['scid']; ?>" <?php if($row123['scid']==$row['class_name']): ?>selected="selected"<?php endif; ?>><?php echo $row123['name']; ?></option>
								 <?php endforeach; ?>
                              
                            </select>                            
                        </div>
                        
                    </div> 
                </div>

            </div>
			  
            
			<div class="row">			
               
                <!-- VOL -->
               <div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right">Section</label>
                        <div class="col-sm-8">
                            <select data-placeholder="(:-- Select Shift --:)" name="shift_name" class="required select-search">
                                <option value=""></option>
								<option value="1" <?php if($row['shift_name']=='1'): ?>selected="selected"<?php endif; ?>>A</option>
								<option value="2" <?php if($row['shift_name']=='2'): ?>selected="selected"<?php endif; ?>>B</option>
								<option value="3" <?php if($row['shift_name']=='3'): ?>selected="selected"<?php endif; ?>>C</option>
								<option value="4" <?php if($row['shift_name']=='4'): ?>selected="selected"<?php endif; ?>>D</option>
                            </select>                            
                        </div>
                        
                    </div> 
                </div>
				<div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right">Group Name</label>
                        <div class="col-sm-8">
                             
							<select data-placeholder="(:-- Select Group Name --:)" name="section_name" class="required select-search">
                                    <option value=""></option>
                                    <option value="General" <?php if($row['section_name']=='General'): ?>selected="selected"<?php endif; ?>>General</option>
                                    <option value="Science" <?php if($row['section_name']=='Science'): ?>selected="selected"<?php endif; ?>>Science</option>
                                    <option value="Commerce" <?php if($row['section_name']=='Commerce'): ?>selected="selected"<?php endif; ?>>Commerce</option>
                                    <option value="Arts" <?php if($row['section_name']=='Arts'): ?>selected="selected"<?php endif; ?>>Arts</option>
                                </select>
                        </div>
                        
                    </div> 
                </div>				
            </div>
            <div class="row">			
               
                <!-- VOL -->
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4 text-right">Guardian Mobile<span class="mandatory">*</span> </label>
                        <div class="col-md-8">
                            <input type="text"  class="required  form-control" placeholder="Guardian Mobile" name="mobile"  value="<?php echo $row['mobile']; ?>">
                        </div>
                    </div>
                </div>
				<!-- SHIPPER -->
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4 text-right">Blood Group<span class="mandatory">*</span> </label>
                        <div class="col-md-8">
                            
							<select data-placeholder="(:-- Select Blood Group --:)" name="bg" class="required select-search">
                              
								 <option value=""></option>
                                    <option value="A+" <?php if($row['bg']=='A+'): ?>selected="selected"<?php endif; ?>>A+</option>
                                    <option value="A-" <?php if($row['bg']=='A-'): ?>selected="selected"<?php endif; ?>>A-</option>
                                    <option value="AB+" <?php if($row['bg']=='AB+'): ?>selected="selected"<?php endif; ?>>AB+</option>
                                    <option value="AB-" <?php if($row['bg']=='AB-'): ?>selected="selected"<?php endif; ?>>AB-</option>
									<option value="AB-" <?php if($row['bg']=='AB-'): ?>selected="selected"<?php endif; ?>>AB-</option>
									<option value="B+" <?php if($row['bg']=='B+'): ?>selected="selected"<?php endif; ?>>B+</option>
									<option value="B-" <?php if($row['bg']=='B-'): ?>selected="selected"<?php endif; ?>>B-</option>
									<option value="O+" <?php if($row['bg']=='O+'): ?>selected="selected"<?php endif; ?>>O+</option>
									<option value="O-" <?php if($row['bg']=='O-'): ?>selected="selected"<?php endif; ?>>O-</option>
                                
								
								
								
                            </select>  
							
							
							
							
                        </div>
                    </div>
                </div>  				
            </div>
			
			<div class="row">			
               
                <!-- VOL -->
                <div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right">Religion</label>
                        <div class="col-sm-8">
                            <select data-placeholder="(:-- Select Gender --:)" name="religion" class="required select-search">
                              
								 <option value=""></option>
                                    <option value="Muslim" <?php if($row['religion']=='Muslim'): ?>selected="selected"<?php endif; ?>>Muslim</option>
                                    <option value="Hindu" <?php if($row['religion']=='Hindu'): ?>selected="selected"<?php endif; ?>>Hindu</option>
                                    <option value="Buddhist" <?php if($row['religion']=='Buddhist'): ?>selected="selected"<?php endif; ?>>Buddhist</option>
                                    <option value="Christian" <?php if($row['religion']=='Christian'): ?>selected="selected"<?php endif; ?>>Christian</option>
                                
								
								
								
                            </select>                            
                        </div>
                        
                    </div> 
                </div>
				<div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right">Gender</label>
                        <div class="col-sm-8">
                            <select data-placeholder="(:-- Select Gender --:)" name="gender" class="required select-search">
                                <option value=""></option>
								
								
								
								<option value="Male" <?php if($row['gender']=='Male'): ?>selected="selected"<?php endif; ?>>Male</option>
                                <option value="Female" <?php if($row['gender']=='Female'): ?>selected="selected"<?php endif; ?>>Female</option>
                                   
                            </select>                            
                        </div>
                        
                    </div> 
                </div>
								
            </div>

                <div class="form-actions text-right">
                    <button type="submit" value="Update" class="btn btn-primary"><i class="fa fa-check"></i> Update</button>
                </div>

            </form> 

        </div>

    <?php endforeach; ?>

</div>
