Example #1
0
 public static function getAllDepartment()
 {
     $departments = Departments::all();
     foreach ($departments as $department) {
         $department->DEPARTMENT = Recoding::winToUtf($department->DEPARTMENT);
     }
     return $departments;
 }
Example #2
0
 public static function getAllSpeciality()
 {
     $specialities = Speciality::select()->where('USE', '=', 1)->get();
     foreach ($specialities as $speciality) {
         $speciality->SPECIALITYCODE = Recoding::winToUtf($speciality->SPECIALITY) . " ( " . $speciality->CODE . " )";
     }
     return $specialities;
 }
Example #3
0
 public static function getAllDepartment()
 {
     $departments = Departments::select()->where('USE', '=', 1)->get();
     foreach ($departments as $department) {
         $department->DEPARTMENT = Recoding::winToUtf($department->DEPARTMENT);
     }
     return $departments;
 }