@php
use App\Services\DirectonHtmlBuilder;
use Illuminate\Support\Facades\Storage;
$facultiesLogosPaths = array();
@endphp
@foreach($groupedDirections as $faculty)
@php
$path = "img/faculties/" . $faculty['name'] . '.png';
if(file_exists($path) == false){
$path = URL::to('img/faculties/Экологический факультет.png');
}
$path = URL::to($path);
$groupedDirections[$faculty['name']]['path'] = $path;
@endphp
@endforeach
@foreach($groupedDirections as $faculty)
{{ $faculty['name'] }}
Основная информация
{{ $faculty['description'] }}
Специальности
Название |
Код специальности |
Уровень образования |
Форма обучения |
@foreach ($faculty['directions'] as $direction)
{{ $direction['name'] }}
@php
$DirectonHtmlBuilder = new DirectonHtmlBuilder($direction);
echo $DirectonHtmlBuilder->getHTML();
@endphp
|
{{ $direction['code'] }} |
{{ $direction['education_level'] }} |
@php
$educationForms = '';
foreach ($direction['education_form'] as $educationForm) {
$educationForms .= $educationForm . ', ';
}
$educationForms = substr($educationForms, 0, -2);
@endphp
{{$educationForms}} |
@endforeach
@endforeach