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;
@ -81,6 +80,7 @@ class DirectonHtmlBuilder
<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>' ;
} }
@ -93,6 +93,7 @@ class DirectonHtmlBuilder
$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){
@ -127,6 +128,7 @@ 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){
@ -149,12 +151,14 @@ 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>";
@ -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,8 +624,8 @@
</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">
@ -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>