forked from aslan/applicant-site
fix lint && prodV1 #38
This commit is contained in:
commit
ceef0fe966
|
@ -4,6 +4,7 @@ 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;
|
||||||
|
@ -27,10 +28,10 @@ class DirectonHtmlBuilder
|
||||||
}
|
}
|
||||||
$education_form = substr($education_form, 0, -2);
|
$education_form = substr($education_form, 0, -2);
|
||||||
|
|
||||||
// phpcs:disable
|
|
||||||
$period = '<br>';
|
$period = '<br>';
|
||||||
foreach ($direction['period'] as $key => $el) {
|
foreach ($direction['period'] as $key => $el) {
|
||||||
$period .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>';
|
$period .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,18 +43,20 @@ class DirectonHtmlBuilder
|
||||||
<br>
|
<br>
|
||||||
<div class="fs-4 text-start">';
|
<div class="fs-4 text-start">';
|
||||||
foreach ($direction['cost_paid_place'] as $key => $el) {
|
foreach ($direction['cost_paid_place'] as $key => $el) {
|
||||||
$paid_cost .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>';
|
$paid_cost .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ;
|
||||||
}
|
}
|
||||||
$paid_cost .= '</div></div>';
|
$paid_cost .= '</div></div>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$EGE = '<div class="col-auto ">
|
$EGE = '<div class="col-auto ">
|
||||||
<strong> ЕГЭ </strong>
|
<strong> ЕГЭ </strong>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<div class=" d-inline-block p-2 text-start">';
|
<div class=" d-inline-block p-2 text-start">';
|
||||||
foreach ($direction['entrance_examinations']['ЕГЭ']['Обязательные'] as $key => $el) {
|
foreach ($direction['entrance_examinations']['ЕГЭ']['Обязательные'] as $key => $el) {
|
||||||
$EGE .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>';
|
$EGE .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ;
|
||||||
}
|
}
|
||||||
$EGE .= '</div></div>';
|
$EGE .= '</div></div>';
|
||||||
|
|
||||||
|
@ -64,7 +67,7 @@ class DirectonHtmlBuilder
|
||||||
<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 {
|
||||||
|
@ -79,7 +82,7 @@ class DirectonHtmlBuilder
|
||||||
<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 {
|
||||||
|
@ -87,12 +90,13 @@ 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) {
|
||||||
$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);
|
||||||
$tmp = str_replace(',', '', $tmp);
|
$tmp = str_replace(',', '', $tmp);
|
||||||
|
@ -109,7 +113,7 @@ class DirectonHtmlBuilder
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>";
|
</div>" ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if($direction['name'] == 'Нефтегазовое дело') {
|
// if($direction['name'] == 'Нефтегазовое дело') {
|
||||||
|
@ -118,6 +122,9 @@ class DirectonHtmlBuilder
|
||||||
// dd($direction);
|
// dd($direction);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$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) {
|
||||||
|
@ -140,7 +147,7 @@ class DirectonHtmlBuilder
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</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>';
|
||||||
|
@ -167,7 +174,7 @@ class DirectonHtmlBuilder
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>";
|
</div>" ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue