<style>
.add-remark-section{
box-shadow:0 0 2px silver;
}
</style>

<div class="container-fluid mt-3 p-3">
<div class="row">
<div class="col-sm-12">

<div class="add-remark-section p-3">
<form method="post">
    
<?php 
if($success){
?>
<div class="alert alert-success" role="alert">
<?php echo $success;?>
</div>
<?php
}

?>

<?php 
$sid=$this->uri->segment('3');
$get_remarks_data=$this->ExamModel->get_student_remark($sid);
if($get_remarks_data){
foreach($get_remarks_data as $remarks_data){
?>
<label><?php echo $remarks_data['quote_type'];?></label>
<input type="text" class="form-control" value="<?php echo $remarks_data['quote']; ?>" readonly >
<?php
}
}
?>

<h5 class="text-success font-weight-bold mt-3">Exam Remark</h5>
<div class="form-group mt-3">
<label>Select Remark Type</label>
<select name="remark_type" class="form-control">
<option value="Excellent">For good result/excellent result</option>
<option value="Improvement">If child needs improvement/if child can improve</option>
<option value="Poor">Scoring very poor percentage</option>
<option value="Failure">If child is failing in any subject</option>
</select>
</div>
<div class="form-group">
<label>Select Exam Mode</label>
<select class="form-control" name="exam_type">
<option value="half_yearly">Half Yearly </option>
<!--<option value="yearly">Yearly Exam</option>-->
</select>
</div>
<div class="form-group">
<input type="text" class="form-control" name="remark_quote" placeholder="Enter Remark">
</div>


<div class="form-group">
<input type="submit" class="btn btn-success btn-sm" value="Update remark" name="add_remark">
</div>

</form>
</div>

</div>
</div>
</div>
<?php 
$eclass='';
$get_student_data=$this->ExamModel->get_student_data($sid);
if($get_student_data){
foreach($get_student_data as $student_data){
$eclass=$student_data['class'];
}
}
$working_days=0;
$get_working_days_data=$this->ExamModel->get_course_data($eclass);
if($get_working_days_data){
foreach($get_working_days_data as $working_days_data){
$working_days=$working_days + $working_days_data['working_days_half_yearly'];
}
}


$get_student_result_data=$this->ExamModel->get_exam_result_data($sid);
$present_days=0;
if($get_student_result_data){
foreach($get_student_result_data as $result_data){
$present_days=$present_days + $result_data['attendance_day_half_yearly'];
}
}

?>
<div class="container-fluid mt-3 mb-3">
<div class="row">
<div class="col-sm-12">

<form method="post">
<h5>Attendance</h5>
<div class="form-group">
<label>Working Days</label>
<input type="hidden" name="sid" value="<?php echo $sid;?>">
<input type="hidden" class="form-control" name="eclass" value="<?php echo $eclass; ?>">

<input type="text" class="form-control" name="working_days" value="<?php echo $working_days;?>" readonly>
</div>
<div class="form-group">
<label>Present Days</label>
<?php
if($present_days !=0){ 
?>
<input type="number" class="form-control" name="" value="<?php echo $present_days; ?>" readonly>
<?php 
} 
?>
<input type="number" class="form-control" name="present_days" placeholder="Attendance">
</div>

<input type="submit" class="btn btn-sm btn-success" value="Update Attendance" name="update_attendance"> 

</form>

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

<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<h5>Remarks</h5>
<div class="remarks-list">
<h6>For good result/excellent result</h6>
<ol>
<li>A  few more steps. You above excellence</li>
<li>Successes awaits you, dash for it</li>
<li>Excellence is not beyond you reach</li>
<li>Well-done, still greater feats are possible for you</li>
<li>Hard-Working students always reap a better harvest.</li>
<li>Excellent, but there are still more horizons toto reach.</li>
<li>Excellent performance, keep it up.</li>
<li>Success to him, who seeks it.</li>
<li>Same eagemessor even more is required</li>
<li>Sweet are the result of hard work</li>
</ol>
<h6>If child needs improvement/if child can improve</h6>

<ol>
<li>Confidence and hard work can yield better result</li>
<li>We expect more form you</li>
<li>Use your capabilities fully and you will do better</li>
<li>Sincere desire and hard work will fetch you a better result</li>
<li>You have the ability to score more</li>
<li>Capable of better performance</li>
<li>Sincere desire and genuine effort can do wonders for you.</li>
<li>Success is a rare guest preoare and wait for it</li>
<li>Utilize your talents for better result. </li>
<li>Make a strenuous attempt in the coming term</li>
<li>Hard work is the key to success.</li>
<li>Work- hard and you reap the fruit you labour</li>
</ol>


<h6>Scoring very poor percentage</h6>
<ol>
<li>Exams are reflection of your efforts wake up and work up.</li>
<li>Hard work and concentration is required.</li>
<li>Wake-up and work up to get the required standard.</li>
<li>Don’t cry over spill milk; see what you can do in the next term.</li>
<li>Failure is not a continuous phenomenon. A night is followed a by a day</li>
<li>Determine yourself to make amends for your failure.</li>
<li>Throw off yourself to make amends for your failure</li>
<li>Hard work is the only antidote for failure</li>
</ol>

<h6>If child is failing in any subject</h6>

	<p>Work uo in ………&…..
Brush up your…….
Hard work is needed in redlined subjects.
Failures are not stopping stones, they are stepping stones</p>

</div>


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







<!--Dear teachers,-->
<!--Please don’t write much better or it is worng-->