public static function getAllDepartment() { $departments = Departments::select()->where('USE', '=', 1)->get(); foreach ($departments as $department) { $department->DEPARTMENT = Recoding::winToUtf($department->DEPARTMENT); } return $departments; }
public static function getAllDepartment() { $departments = Departments::all(); foreach ($departments as $department) { $department->DEPARTMENT = Recoding::winToUtf($department->DEPARTMENT); } return $departments; }
/** * 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')); }