forked from aslan/applicant-site
prodV1 #2
|
@ -36,7 +36,11 @@ class DirectionController extends Controller
|
||||||
{
|
{
|
||||||
$levels = EducationLevel::pluck('name', 'id');
|
$levels = EducationLevel::pluck('name', 'id');
|
||||||
$forms = EducationForm::pluck('name', 'id');
|
$forms = EducationForm::pluck('name', 'id');
|
||||||
$departments = Department::pluck('name', 'id');
|
$departments = Department::all()
|
||||||
|
->reduce(function (?array $carry, $department) {
|
||||||
|
$carry[$department->id] = "{$department->name} - {$department->faculty->name}";
|
||||||
|
return $carry;
|
||||||
|
});
|
||||||
$examination_types = ExaminationType::pluck('name', 'id');
|
$examination_types = ExaminationType::pluck('name', 'id');
|
||||||
$subjects = Subject::pluck('name', 'id');
|
$subjects = Subject::pluck('name', 'id');
|
||||||
$subjectTypes = SubjectType::pluck('name', 'id');
|
$subjectTypes = SubjectType::pluck('name', 'id');
|
||||||
|
|
Loading…
Reference in New Issue