session->flashdata('success_msg'))) { ?>
× Success! session->flashdata('success_msg'); ?>
session->flashdata('error_msg'))) { ?>
× Failed! session->flashdata('error_msg'); ?>
0) { if (isset($_POST['filter_fee_types']) && !empty($_POST['filter_fee_types'])) { $f_f_types = $_POST['filter_fee_types']; } } // print_r($_POST); ?>
Scholarships
0) { $sql = "SELECT s.id as section_id,s.section_name FROM course_sections cs JOIN section s ON s.id=cs.section_id WHERE cs.course_id='$search_course_id' ORDER BY s.id DESC"; $section_list = $this->Admin_model->get_query_result($sql); ?>
0) { // var_dump($selected_feetype); ?>
'; // var_dump($selected_fee_types); if (isset($selected_fee_types) && !empty($selected_fee_types)) { if (isset($selected_fee_types) && !empty($selected_fee_types)) { // Check if the fee type is trapnsport or monthly $fees = json_decode($selected_fee_types[0]['fees_name']); if (in_array(8, $f_f_types) || in_array(4, $f_f_types) || in_array(5, $f_f_types)) { ?> '; // var_dump($students); $sno = 1; if (isset($students) && !empty($students)) { // echo '
';
                                                    // print_r($students);
                                                    foreach ($students as $svalue) {

                                                        if ($svalue['scholarship'] != null) {
                                                            $scholarshipFee = $svalue['scholarship'];
                                                        }
                                                ?>
                                                        
'; // 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] : ''; ?>
Student Id Student Name Section Scholarship Type Scholarship
'; $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); ?> _' placeholder="In Percentage (%)" value= />
_' placeholder="In Rs." value= />
'; // 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 { ?> _' placeholder="In Percentage (%)" value='' />
_' placeholder="In Rs." value='' />