$student_info_array['batch_id'], 'course_id' => $student_info_array['course_id'], 'section_id' => $student_info_array['section_id'], 'student_id' => $student_info_array['student_id'] ); // print_r($url_params); ?> Fee Management Download Academic Report

session->flashdata('success')) { ?> session->flashdata('failed')) { ?>
Transactions of

'; } else { ?>
Recent Transactions
$value) { $totalPaymentArray = explode(",", $value['payment_amt']); $totalDeductionArray = explode(",", $value['deduction_amount']); $totalFineAmountArray = explode(",", $value['fine_amount']); $paid = (float)array_sum($totalPaymentArray) + (float)array_sum($totalFineAmountArray) - (float)array_sum($totalDeductionArray); ?>
# Payment For Date Invoice No Payment Status Amount Discount Fine Amount Paid Amount Action
$fValue) { echo '

' . $fValue ?>(

'; } ?>

Pending Transactions
$tdf) { array_push($payment_status, $tdf['fee_completed']); } if ($school_info['batch_id'] == $selectedBatch) { if (in_array('no', $payment_status)) { $batch_id = $table_due_fees[0]['batch_id']; $batch_name = ''; foreach ($batches as $row) { if ($row['id'] == $batch_id) { $batch_name = $row['b_name']; } } ?> $value) { // echo '
';
                                                            // var_dump();
                                                            $paid_status = $value['fee_completed'] == 'no' ? TRUE : FALSE;
                                                            // echo '
';
                                                            // print_r($value['hasScholarship']);



                                                            $totalFeeAmount = 0.0;
                                                            $totalPendingAmount = 0.0;
                                                            if (isset($value['is_half_fee']) && $value['is_half_fee'] == 'yes') {
                                                                $totalFeeAmount = number_format((float) $value['fee_amount'], 2, '.', '') / 2;
                                                                // array_push()
                                                                if ($totalFeeAmount < $value['pending_amount']) {
                                                                    $totalPendingAmount = $totalFeeAmount;
                                                                } else {
                                                                    $totalPendingAmount = number_format((float) $value['pending_amount'], 2, '.', '');
                                                                }
                                                            } else {
                                                                $totalFeeAmount = number_format((float) $value['fee_amount'], 2, '.', '');
                                                                $totalPendingAmount = number_format((float) $value['pending_amount'], 2, '.', '');
                                                            }

                                                            if ($value['hasScholarship'] == 'yes') {
                                                                if (isset($value['is_half_fee']) && $value['is_half_fee'] == 'yes') {
                                                                    $discount = ((float) $value['scholarship_discount'] / 100) * $totalFeeAmount;
                                                                    $totalFeeAmount = $totalFeeAmount - $discount;
                                                                } else {
                                                                    $totalFeeAmount = number_format($totalFeeAmount - (float) $value['scholarship_amount'], 2, '.', '');
                                                                }

                                                                // echo 'Scholarship Logic';
                                                                // echo 'Fee Amount = ' . $totalFeeAmount . ' Pending Amount = ' . $totalPendingAmount;
                                                                if ($totalFeeAmount < $totalPendingAmount) {
                                                                    $totalPendingAmount = $totalFeeAmount;
                                                                } else {
                                                                    $totalPendingAmount = number_format((float) $value['pending_amount'], 2, '.', '');
                                                                }
                                                            }

                                                            // echo $paid_status . '
'; if ($paid_status) { $totalDueAmount = $totalDueAmount + $totalFeeAmount; $totalDuePendginAmount = $totalDuePendginAmount + $totalPendingAmount; $totalScholarshipAmt = $totalScholarshipAmt + $value['scholarship_amount']; array_push($scholarship_type, $value['scholarship_type']); array_push($course_fee_ids, $value['course_fee_id']); array_push($course_fee_amount, $totalFeeAmount); array_push($payment_status, 'no'); } else { array_push($payment_status, 'yes'); } } ?>
$value) { // echo '
';
                                                    // var_dump($value['is_half_fee']);
                                                    $paid_status = $value['fee_completed'] == 'no' ? TRUE : FALSE;
                                                    // echo '
';
                                                    // print_r($value['hasScholarship']);


                                                    $totalFeeAmount = 0.0;
                                                    $totalPendingAmount = 0.0;
                                                    if (isset($value['is_half_fee']) && $value['is_half_fee'] == 'yes') {
                                                        $totalFeeAmount = number_format((float)$value['fee_amount'], 2, '.', '') / 2;

                                                        if ($totalFeeAmount < $value['pending_amount']) {
                                                            $totalPendingAmount = $totalFeeAmount;
                                                        } else {
                                                            $totalPendingAmount = number_format((float)$value['pending_amount'], 2, '.', '');
                                                        }
                                                    } else {
                                                        $totalFeeAmount = number_format((float)$value['fee_amount'], 2, '.', '');
                                                        $totalPendingAmount = number_format((float)$value['pending_amount'], 2, '.', '');
                                                    }

                                                    if ($value['hasScholarship'] == 'yes') {
                                                        if (isset($value['is_half_fee']) && $value['is_half_fee'] == 'yes') {
                                                            $discount = ((float)$value['scholarship_discount'] / 100) * $totalFeeAmount;
                                                            $totalFeeAmount = $totalFeeAmount - $discount;
                                                        } else {
                                                            $totalFeeAmount = number_format($totalFeeAmount  - (float)$value['scholarship_amount'], 2, '.', '');
                                                        }

                                                        // echo 'Scholarship Logic';
                                                        // echo 'Fee Amount = ' . $totalFeeAmount . ' Pending Amount = ' . $totalPendingAmount;
                                                        if ($totalFeeAmount < $totalPendingAmount) {
                                                            $totalPendingAmount = $totalFeeAmount;
                                                        } else {
                                                            $totalPendingAmount = number_format((float)$value['pending_amount'], 2, '.', '');
                                                        }
                                                    }

                                                ?>
                                                    
Due-Date Fee Name Fee Amt Pending Amt Fine Amt Payable Amt Fine Discount Actions
- Old Due Fees () -'; } ?> -'; } ?>

'; } else { echo ''; } ?>
() -'; } ?> -'; } ?>

'; } else { echo ''; } ?>
Total Fees : Pay Now

". $selectedBatch; if ($school_info['batch_id'] == $selectedBatch) { // dd($table_due_fees); $payment_status = array(); foreach ($table_due_fees as $tdf_key => $tdf) { array_push($payment_status, $tdf['fee_completed']); } if (in_array('no', $payment_status)) { ?>