fixing directions

This commit is contained in:
ROMANGOLIENKO 2024-03-18 13:03:50 +03:00
parent f93404d996
commit 116c949f45
1 changed files with 7 additions and 1 deletions

View File

@ -60,13 +60,16 @@ class DirectonHtmlBuilder
//exit();
if (array_key_exists('educationalInstitution', $direction)) {
foreach ($direction['educationalInstitution'] as $educationalInstitution_name => $educationalInstitution) {
$profile_out = '<br>';
$profiles .= "<p> {$educationalInstitution_name}</p>";
foreach ($educationalInstitution as $profile_name => $profile) {
$profile_out = '<br>';
foreach ($profile as $key => $value) {
$profile_out .= "<span style='font-family: Geologica-ExtraLight'>{$key}</span> - <strong> {$value['budget_places']} </strong><br>";
}
$tmp = str_replace(' ', '', $profile_name);
$tmp = str_replace(',', '', $tmp);
// $print_r = '<pre>' . print_r($direction,1) . '<pre>';
$profiles .= "
<div class=\"accordion \" id=\"accordionPanelsStayOpenExample\">
<div class=\"accordion-item\">
@ -78,6 +81,9 @@ class DirectonHtmlBuilder
<div id=\"panelsStayOpen-{$tmp}\" class=\"accordion-collapse collapse show\">
<div class=\"accordion-body\">
$profile_out
</div>
</div>
</div>