applicant-site/resources/views/admin/catalog/direction/show.blade.php

113 lines
4.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@php
use App\Models\Subject;
use App\Models\EducationForm;
@endphp
@extends('layouts.admin_layout')
@section('content')
@auth()
<h6>
<a href="{{ route('educational_institutions.show', $educationalInstitution) }}">
{{ $educationalInstitution->name }}
</a>
->
<a href="{{ route('faculties.show', $faculty) }}">{{ $faculty->name }}</a>
->
<a href="{{ route('departments.show', $department) }}">{{ $department->name }}</a>
-> {{ $direction->name }}
</h6>
<div class="container mt-4">
<h2>Название направления подготовки</h2>
<p>{{ $direction->name }}</p>
<h2>Уровень Образования</h2>
<p>
<a href="{{ route('education_levels.show', $direction->educationLevel) }}">{{ $direction->educationLevel->name }}</a>
</p>
<h2>Форма обучения</h2>
<p>
<a href="{{ route('education_forms.show', $direction->educationForm) }}">{{ $direction->educationForm->name }}</a>
</p>
@if(count($ege) !== 0)
<h2>
Вступительные испытания по ЕГЭ (Минимальное количество баллов)
</h2>
@foreach($ege as $subject_id => $scores)
@php
$subject = (new Subject())->find($subject_id);
@endphp
<p>{{ $subject->name }} - {{ $scores }}</p>
@endforeach
@endif
@if(count($spo) !== 0)
<h2>
Профильные вступительные испытания, проводимые в МГТУ для поступающих на базе СПО
</h2>
@foreach($spo as $subject_id => $scores)
@php
$subject = (new Subject())->find($subject_id);
@endphp
<p>{{ $subject->name }} - {{ $scores }}</p>
@endforeach
@endif
@if(count($magistracy) !== 0)
<h2>
Вступительные испытания для Магистратуры
</h2>
@foreach($spo as $subject_id => $scores)
@php
$subject = (new Subject())->find($subject_id);
@endphp
<p>{{ $subject->name }} - {{ $scores }}</p>
@endforeach
@endif
<h2>
Количество бюджетных мест
</h2>
@foreach($budget as $education_form_id => $amount)
@php
$educationForm = (new EducationForm())->find($education_form_id);
@endphp
<p>{{ $educationForm->name }} - {{ $amount }}</p>
@endforeach
<h2>
Количество мест по договорам об оказании платных обр. услуг
</h2>
@foreach($paid as $education_form_id => $amount)
@php
$educationForm = (new EducationForm())->find($education_form_id);
@endphp
<p>{{ $educationForm->name }} - {{ $amount }}</p>
@endforeach
<h2>
стоимость обучения
</h2>
@foreach($costs as $education_form_id => $cost)
@php
$educationForm = (new EducationForm())->find($education_form_id);
@endphp
<p>{{ $educationForm->name }} - {{ $cost }}</p>
@endforeach
<h2>Профили подготовки</h2>
@foreach($direction->directionProfiles as $profile)
<p>{{ $profile->name }}</p>
@endforeach
<h2>Профили подготовки</h2>
@foreach($direction->periods as $period)
@php
$educationForm = (new EducationForm())->find($period->education_form_id);
@endphp
<p>{{ $educationForm->name }} - {{ $period->period }}</p>
@endforeach
</div>
@endauth
@endsection