Пример #1
0
 public static function getAllDepartment()
 {
     $departments = Departments::select()->where('USE', '=', 1)->get();
     foreach ($departments as $department) {
         $department->DEPARTMENT = Recoding::winToUtf($department->DEPARTMENT);
     }
     return $departments;
 }
Пример #2
0
 public static function getAllDepartment()
 {
     $departments = Departments::all();
     foreach ($departments as $department) {
         $department->DEPARTMENT = Recoding::winToUtf($department->DEPARTMENT);
     }
     return $departments;
 }
Пример #3
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $departments = Departments::getAllDepartment();
     $speciality = Speciality::getAllSpeciality();
     return view('admin.subject.index', compact('departments', 'speciality'));
 }