Compare commits

..

No commits in common. "ceef0fe96614e6cc470f1cf1852f951691942461" and "1a9cdae6e211b230090b867d00549860c577f3c3" have entirely different histories.

1 changed files with 14 additions and 21 deletions

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;
@ -28,7 +27,7 @@ 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>';
@ -48,8 +47,6 @@ class DirectonHtmlBuilder
$paid_cost .= '</div></div>'; $paid_cost .= '</div></div>';
$EGE = '<div class="col-auto "> $EGE = '<div class="col-auto ">
<strong> ЕГЭ </strong> <strong> ЕГЭ </strong>
<br> <br>
@ -90,13 +87,12 @@ 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);
@ -122,9 +118,6 @@ 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) {