forked from aslan/applicant-site
Compare commits
No commits in common. "ef1524b96ed56050a62fdcea6b46daecc33c6b32" and "5fc547803c0d966b5edf60219208e91dd20a7b75" have entirely different histories.
ef1524b96e
...
5fc547803c
|
@ -32,12 +32,16 @@ class PageController extends Controller
|
|||
$subjects = EntranceExamination::all()
|
||||
->select('subject_id', 'subject_type_id', 'examination_type_id')
|
||||
->where('examination_type_id', '=', ExaminationTypeEnum::Ege->value)
|
||||
->reduce(function (?array $carry, $subject) {
|
||||
->groupBy('subject_type_id')->map(function ($examinate) {
|
||||
return $examinate->reduce(function (?array $carry, $subject) {
|
||||
$id = $subject['subject_id'];
|
||||
$value = Subject::find($id)->name;
|
||||
$carry[$id] = $value;
|
||||
return $carry;
|
||||
});
|
||||
})
|
||||
->toArray();
|
||||
|
||||
// $subjects = EntranceExamination::pluck('name', 'id');
|
||||
// $infBez = $faculties->find(FacultyEnum::InfBez->value);
|
||||
// $query = `select faculties.name, directions.name, directions.id
|
||||
|
|
|
@ -424,7 +424,7 @@
|
|||
<span class="checkmark"></span>
|
||||
</label>
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeac1
|
||||
<hr class="col-5">
|
||||
@foreach($subjects as $id => $name)
|
||||
@if($name !== "Русский язык" && $name !== "Математика" )
|
||||
|
|
Loading…
Reference in New Issue