= $svalue['studentId']; ?> |
= $svalue['student_name']; ?> |
= $svalue['section_name']; ?> |
';
$sTypes = [];
if ($svalue['scholarship'] != null) {
foreach ($svalue['scholarship'] as $ss_value) {
if (isset($ss_value['scholarship_type']) && ($ss_value['scholarship_type'] != null)) {
array_push($sTypes, $ss_value['scholarship_type']);
}
}
$sTypes = array_unique($sTypes);
}
// var_dump($sTypes);
?>
|
';
// print_r($scholarshipFee);
?>
|
0) {
foreach ($scholarshipFee as $sf_key => $sf_value) {
// var_dump($sf_value['scholarship_amount']);
array_push($scholarShipAmountArray, $sf_value['scholarship_amount']);
array_push($scholarShipPercentageArray, $sf_value['scholarship_discount']);
}
}
$scholarShipAmountArray = array_unique($scholarShipAmountArray);
$scholarShipPercentageArray = array_unique($scholarShipPercentageArray);
$scholarShipAmount = count($scholarShipAmountArray) > 0 ? $scholarShipAmountArray[0] : '';
$scholarShipPercentage = count($scholarShipPercentageArray) > 0 ? $scholarShipPercentageArray[0] : '';
?>
_= $sftypes['fees_type']; ?>' placeholder="In Percentage (%)" value== $scholarShipPercentage ?> />
_= $sftypes['fees_type']; ?>' placeholder="In Rs." value== $scholarShipAmount ?> />
|
';
// print_r($svalue['scholarship']);
// If scholarship is already assigned tos student.
if ($svalue['scholarship'] != null) {
$ss_scholarship_id = 0;
$ss_scholarship_amouhnt = 0;
$ss_scholarship_percentage = 0;
$is_payment_made = 0;
foreach ($svalue['scholarship'] as $ss_key => $ss_value) {
// print_r();
// echo ('Course Fee Id = ' . $sftypes['course_fee_id']);
// if($ss_value['isPaymentMade'] > 0){
if (($ss_value['course_fee_id'] == $sftypes['course_fee_id']) && ($ss_value['student_id'] == $svalue['student_id'])) {
$ss_scholarship_id = $ss_value['id'];
$ss_scholarship_amount = $ss_value['scholarship_amount'];
$ss_scholarship_percentage = $ss_value['scholarship_discount'];
$is_payment_made = $ss_value['isPaymentMade'];
}
}
?>
0)) {
echo ' Fee Already Paid ';
} else {
?>
_= $sftypes['fees_type']; ?>' placeholder="In Percentage (%)" value='= $svalue['scholarship'] != null ? $ss_scholarship_percentage : '' ?>' />
_= $sftypes['fees_type']; ?>' placeholder="In Rs." value='= $svalue['scholarship'] != null ? $ss_scholarship_amount : '' ?>' />
|