Ejemplo n.º 1
0
    @endif

                                 </div>
                              </div>-->
                              <!--<div class="form-group">
                                 {{ Form::label('date_of_birth', 'Applicant verified by BQu date', array('class' => 'col-sm-3 control-label'));  }}
                                 <div class="col-sm-3"><div class="form-inline">
                                               </div>
                                             </div>
                                             </div>-->
                              <div class="form-group">
                                 <label class="col-sm-1 control-label"></label>
                                 <label class="col-sm-2 control-label">Status </label>
                                 <div class="col-sm-9">
<?php 
$ApplicationStatus = StudentApplicationStatus::lastRecordBySAN($student->san);
?>
 <?php 
/* ?>
  @if($ApplicationStatus->status == 1)
Added ( Pending for validation )
  @elseif($ApplicationStatus->status == 2)
 Validated
 @else
 {{ StaticDataStatus::getNameById($ApplicationStatus->status)  }}
 @endif
 <?php */
?>


                                 </div>
Ejemplo n.º 2
0
 public function verify_student()
 {
     //return Input::all();
     $studentBquVerificationData = new StudentBquVerificationData();
     $studentBquVerificationData->mails_from_lsm = Input::get('received_any_emails_from_lsm');
     $studentBquVerificationData->know_structure_of_the_course = Input::get('know_about_the_structure_of_the_course');
     $studentBquVerificationData->how_did_you_hear = json_encode(Input::get('how_did_you_hear_about_the_course'));
     $studentBquVerificationData->how_did_you_hear_other = Input::get('how_did_you_hear_about_the_course_other');
     $studentBquVerificationData->what_do_you_want_to_achieve = json_encode(Input::get('what_do_you_want_to_achieve'));
     $studentBquVerificationData->what_do_you_want_to_achieve_other = Input::get('what_do_you_want_to_achieve_other');
     $studentBquVerificationData->bqu_comments = Input::get('bqu_comments');
     $studentBquVerificationData->student_comments = Input::get('student_comments');
     $studentBquVerificationData->call_type = Input::get('call_type');
     $studentBquVerificationData->ls_student_number = Input::get('ls_student_number_for_amendments');
     $studentBquVerificationData->san = Input::get('san_for_amendments');
     $studentBquVerificationData->created_by = Sentry::getUser()->id;
     $studentBquVerificationData->record_status = 1;
     $studentBquVerificationData->save();
     $studentApplicationStatus = new StudentApplicationStatus();
     $studentApplicationStatus->san = Input::get('san_for_amendments');
     $studentApplicationStatus->status = 3;
     $studentApplicationStatus->created_by = Sentry::getUser()->id;
     $studentApplicationStatus->save();
     Notify::success('Student data ( ' . Input::get('san_for_amendments') . ' ) Verified successfully');
     return View::make('students.verify')->with('students', DB::table('students')->select(DB::raw('max(id) as id,title,initials_1,initials_2,initials_3,forename_1,forename_2,forename_3,surname,ls_student_number ,san'))->groupBy('san')->get());
     return Input::all();
 }