public function saveStudentPaymentInfo($is_verified) { $total_fee = Input::get('total_fee'); $course_fees = Input::get('course_fees'); $payment_status = Input::get('payment_status'); $late_admin_fee = Input::get('late_admin_fee'); $late_fee = Input::get('late_fee'); $deposit = Input::get('deposit'); //$deposit_date = Input::get('deposit_date'); $deposit_date = Input::get('deposit_date_date') . '-' . Input::get('deposit_date_month') . '-' . Input::get('deposit_date_year'); $deposit_method = Input::get('deposit_method'); $installment_1 = Input::get('installment_1'); //$installment_1_date = Input::get('installment_1_date'); $installment_1_date = Input::get('installment_1_date_date') . '-' . Input::get('installment_1_date_month') . '-' . Input::get('installment_1_date_year'); $installment_1_method = Input::get('installment_1_method'); $installment_2 = Input::get('installment_2'); //$installment_2_date = Input::get('installment_2_date'); $installment_2_date = Input::get('installment_2_date_date') . '-' . Input::get('installment_2_date_month') . '-' . Input::get('installment_2_date_year'); $installment_2_method = Input::get('installment_2_method'); $installment_3 = Input::get('installment_3'); //$installment_3_date = Input::get('installment_3_date'); $installment_3_date = Input::get('installment_3_date_date') . '-' . Input::get('installment_3_date_month') . '-' . Input::get('installment_3_date_year'); $installment_3_method = Input::get('installment_3_method'); $t = Input::get('t'); $s = Input::get('s'); $se = Input::get('se'); $san = Input::get('san'); $ls_student_number = Input::get('ls_student_number'); $studentPaymentInfoMetadata = new StudentPaymentInfoMetadata(); $studentPaymentInfoMetadata->course_fees = serialize($course_fees); $studentPaymentInfoMetadata->payment_status = serialize($payment_status); $studentPaymentInfoMetadata->total_fee = $total_fee; $studentPaymentInfoMetadata->late_admin_fee = $late_admin_fee; $studentPaymentInfoMetadata->late_fee = $late_fee; $studentPaymentInfoMetadata->is_verified = $is_verified; $studentPaymentInfoMetadata->san = $san; $studentPaymentInfoMetadata->created_by = Sentry::getUser()->id; $studentPaymentInfoMetadata->amendment = 0; $studentPaymentInfoMetadata->save(); $studentPaymentInfo = new StudentPaymentInfo(); $studentPaymentInfo->deposit = $deposit; $studentPaymentInfo->deposit_date = $deposit_date; $studentPaymentInfo->deposit_method = $deposit_method; $studentPaymentInfo->installment_1 = $installment_1; $studentPaymentInfo->installment_1_date = $installment_1_date; $studentPaymentInfo->installment_1_method = $installment_1_method; $studentPaymentInfo->installment_2 = $installment_2; $studentPaymentInfo->installment_2_date = $installment_2_date; $studentPaymentInfo->installment_2_method = $installment_2_method; $studentPaymentInfo->installment_3 = $installment_3; $studentPaymentInfo->installment_3_date = $installment_3_date; $studentPaymentInfo->installment_3_method = $installment_3_method; $studentPaymentInfo->is_verified = 1; $studentPaymentInfo->san = $san; $studentPaymentInfo->created_by = Sentry::getUser()->id; $studentPaymentInfo->amendment = 0; $studentPaymentInfo->save(); return $studentPaymentInfoMetadata->id; }