Compare commits

..

No commits in common. "794b0db6a1a463c37b007922d7499d17b9bc46a4" and "22e6a16c328f51378e54685fc3aa1c88fa46e8c8" have entirely different histories.

3 changed files with 34 additions and 25 deletions

View File

@ -14,7 +14,7 @@ jobs:
strategy: strategy:
matrix: matrix:
php-version: [ '8.2' ] php-version: [ '8.3' ]
node-version: ['20.x'] node-version: ['20.x']
composer-version: ['2.6.6'] composer-version: ['2.6.6']
@ -28,6 +28,7 @@ jobs:
coverage: xdebug coverage: xdebug
extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite, gd extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite, gd
tools: composer:${{ matrix.composer-version }} tools: composer:${{ matrix.composer-version }}
ini-values: opcache.enable_cli=1
env: env:
debug: true debug: true

View File

@ -4,7 +4,6 @@ namespace App\Services;
use Illuminate\Support\Facades\URL; use Illuminate\Support\Facades\URL;
// phpcs:disable
class DirectonHtmlBuilder class DirectonHtmlBuilder
{ {
private array $direction; private array $direction;
@ -65,12 +64,12 @@ class DirectonHtmlBuilder
<br> <br>
<br> <br>
<div class=" d-inline-block p-2 text-start">'; <div class=" d-inline-block p-2 text-start">';
if (array_key_exists('Предметы по выбору', $direction['entrance_examinations']['ЕГЭ'])) { if(array_key_exists('Предметы по выбору', $direction['entrance_examinations']['ЕГЭ'])){
foreach ($direction['entrance_examinations']['ЕГЭ']['Предметы по выбору'] as $key => $el) { foreach ($direction['entrance_examinations']['ЕГЭ']['Предметы по выбору'] as $key => $el) {
$po_viboru .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ; $po_viboru .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ;
} }
$po_viboru .= '</div></div>'; $po_viboru .= '</div></div>';
} else { }else {
$po_viboru = ''; $po_viboru = '';
} }
@ -80,22 +79,24 @@ class DirectonHtmlBuilder
<br> <br>
<br> <br>
<div class=" d-inline-block p-2 text-start">'; <div class=" d-inline-block p-2 text-start">';
if (array_key_exists('СПО', $direction['entrance_examinations'])) { if(array_key_exists('СПО', $direction['entrance_examinations'])){
foreach ($direction['entrance_examinations']['СПО']['Обязательные'] as $key => $el) { foreach ($direction['entrance_examinations']['СПО']['Обязательные'] as $key => $el) {
$SPO .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ; $SPO .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ;
} }
$SPO .= '</div></div>'; $SPO .= '</div></div>';
} else { }else {
$SPO = ''; $SPO = '';
} }
$mgtu = ''; $mgtu = '';
if (array_key_exists('МГТУ', $direction['budget_places'])) { if(array_key_exists('МГТУ', $direction['budget_places'])){
foreach ($direction['budget_places']['МГТУ'] as $profile_name => $profile) { foreach ($direction['budget_places']['МГТУ'] as $profile_name => $profile) {
$profile_content = ''; $profile_content ='';
foreach ($profile as $forms => $budget_places) { foreach($profile as $forms => $budget_places){
$profile_content .= "<strong> {$forms} </strong> - " . "<span style=\'font-family: Geologica-ExtraLight\'> {$budget_places} </span><br>"; $profile_content .= "<strong> {$forms} </strong> - " . "<span style=\'font-family: Geologica-ExtraLight\'> {$budget_places} </span><br>";
} }
$tmp = str_replace(' ', '', $profile_name); $tmp = str_replace(' ', '', $profile_name);
@ -126,10 +127,11 @@ class DirectonHtmlBuilder
$filial = ''; $filial = '';
if (array_key_exists('Филиал МГТУ (пос. Яблоновский)', $direction['budget_places'])) { if(array_key_exists('Филиал МГТУ (пос. Яблоновский)', $direction['budget_places'])){
foreach ($direction['budget_places']['Филиал МГТУ (пос. Яблоновский)'] as $profile_name => $profile) { foreach ($direction['budget_places']['Филиал МГТУ (пос. Яблоновский)'] as $profile_name => $profile) {
$profile_content = ''; $profile_content ='';
foreach ($profile as $forms => $budget_places) { foreach($profile as $forms => $budget_places){
$profile_content .= "<strong> {$forms} </strong> - " . "<span style=\'font-family: Geologica-ExtraLight\'> {$budget_places} </span><br>"; $profile_content .= "<strong> {$forms} </strong> - " . "<span style=\'font-family: Geologica-ExtraLight\'> {$budget_places} </span><br>";
} }
$tmp = str_replace(' ', '', $profile_name); $tmp = str_replace(' ', '', $profile_name);
@ -149,16 +151,18 @@ class DirectonHtmlBuilder
</div> </div>
</div>" ; </div>" ;
} }
} else { }
else {
$filial = '<div class="w-100 h-100 d-flex justify-content-center align-items-center" >Этой специальности нет в филиалле</div>'; $filial = '<div class="w-100 h-100 d-flex justify-content-center align-items-center" >Этой специальности нет в филиалле</div>';
} }
$paid_places_content = ''; $paid_places_content = '';
foreach ($direction['paid_places'] as $institution) { foreach ($direction['paid_places'] as $institution) {
foreach ($institution as $profile_name => $profile) { foreach ($institution as $profile_name => $profile) {
$profile_content = ''; $profile_content = '';
foreach ($profile as $forms => $paid_places) { foreach ($profile as $forms => $paid_places) {
$profile_content .= "<strong> {$forms} </strong> - " . "<span style=\'font-family: Geologica-ExtraLight\'> {$paid_places} </span><br>"; $profile_content .= "<strong> {$forms} </strong> - " . "<span style=\'font-family: Geologica-ExtraLight\'> {$paid_places} </span><br>";
} }
$tmp = str_replace(' ', '', $profile_name); $tmp = str_replace(' ', '', $profile_name);
$tmp = str_replace(',', '', $tmp); $tmp = str_replace(',', '', $tmp);
$paid_places_content .= "<div class=\"accordion \" id=\"accordionExample\"> $paid_places_content .= "<div class=\"accordion \" id=\"accordionExample\">
@ -175,6 +179,7 @@ class DirectonHtmlBuilder
</div> </div>
</div> </div>
</div>" ; </div>" ;
} }
} }

View File

@ -420,7 +420,7 @@
type="button" data-bs-toggle="offcanvas" type="button" data-bs-toggle="offcanvas"
data-bs-target="#offcanvasScrolling-{{ $direction['id'] }}" data-bs-target="#offcanvasScrolling-{{ $direction['id'] }}"
aria-controls="offcanvasScrolling" aria-controls="offcanvasScrolling"
role="button" style="background: white">{{ $direction['name'] }}</a> role="button">{{ $direction['name'] }}</a>
@php @php
$DirectonHtmlBuilder = new DirectonHtmlBuilder($direction); $DirectonHtmlBuilder = new DirectonHtmlBuilder($direction);
@ -486,7 +486,7 @@
<div <div
style="background-image: url({{ URL::to('img/front-page/bakalavr-special/fon2_blok.png') }}); background-repeat: no-repeat; background-attachment: fixed;"> style="background-image: url({{ URL::to('img/front-page/bakalavr-special/fon2_blok.png') }}); background-repeat: no-repeat; background-attachment: fixed;">
<div class="container-fluid ms-sm-5 py-5"> <div class="container-fluid ms-sm-5 pt-5">
<div class="row"> <div class="row">
<div class="display-5 col-12 text-white mb-3 text-center text-md-start " <div class="display-5 col-12 text-white mb-3 text-center text-md-start "
style=" font-weight: 700; letter-spacing: 0em; "> style=" font-weight: 700; letter-spacing: 0em; ">
@ -588,14 +588,14 @@
</div> </div>
<div class="d-md-block d-none"><br><br><br><br><br><br><br><br><br><br><br><br><br></div> <br><br><br><br><br><br><br><br><br><br><br><br><br>
</div> </div>
<div <div
style="background-image: url({{ URL::to('img/front-page/bakalavr-special/fon4_blok.png') }}); background-repeat: no-repeat; background-attachment: fixed;"> style="background-image: url({{ URL::to('img/front-page/bakalavr-special/fon4_blok.png') }}); background-repeat: no-repeat; background-attachment: fixed;">
<div class="container-fluid ms-sm-5 pt-5"> <div class="container-fluid ms-sm-5 pt-5">
<div class="row"> <div class="row">
<div class="col d-lg-block d-flex justify-content-center"> <div class="col-6">
<div class="display-5 col-12 mb-3 text-center text-md-start gradient-text " <div class="display-5 col-12 mb-3 text-center text-md-start gradient-text "
style=" font-weight: 700; letter-spacing: 0em; "> style=" font-weight: 700; letter-spacing: 0em; ">
ЭКРАН ПРИЕМА ЭКРАН ПРИЕМА
@ -624,10 +624,10 @@
</a> </a>
</div> </div>
</div> --> </div> -->
<div class="mt-3 d-flex justify-content-start scroll-1 ps-lg-0 ms-lg-0 ps-3 ms-3"> <div class="mt-3 d-flex justify-content-center scroll-1">
<div class="row ps-2 scroll-1 mb-4 " style=" overflow:auto; width: 95%; height: 60em;"> <div class="row w-75 h-75 ps-2 scroll-1" style=" overflow:auto;">
<div class="col-11 "> <div class="col-11 ">
<div class="row shadow-lg mt-3 bg-white" style=" border-radius: 20px;"> <div class="row shadow-lg mt-3 bg-white" style=" border-radius: 20px;">
<div class="col-9 m-3"> <div class="col-9 m-3">
<div class="fs-4 gradient-text"> <div class="fs-4 gradient-text">
Начало приема документов Начало приема документов
@ -796,10 +796,13 @@
</div> </div>
<br><br><br><br><br><br><br><br>
</div> </div>
</div> </div>
</div> </div>
<br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br>
<br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br>
</div> </div>
</div> </div>
</div> </div>