Beispiel #1
0
 static function getIntrovisitByStudentId($studentId)
 {
     return IntroVisit::with('Classes', 'Batches')->where('student_id', '=', $studentId)->where('franchisee_id', '=', Session::get('franchiseId'))->get();
 }
 public function getIntrovisitByCustomerStatus()
 {
     $inputs = Input::all();
     $iv_data = IntroVisit::with('students', 'classes', 'batches')->where('customer_id', '=', $inputs['customerId'])->whereIn('status', array('ACTIVE/SCHEDULED', 'RESCHEDULED'))->get();
     return Response::json(array('status' => 'success', 'data' => $iv_data));
 }