diff --git a/app/Services/DirectonHtmlBuilder.php b/app/Services/DirectonHtmlBuilder.php index e14d14a..f62dd29 100644 --- a/app/Services/DirectonHtmlBuilder.php +++ b/app/Services/DirectonHtmlBuilder.php @@ -50,7 +50,37 @@ class DirectonHtmlBuilder } + $mgtu = ''; + if(array_key_exists('МГТУ', $direction['budget_places'])){ + foreach ($direction['budget_places']['МГТУ'] as $profile_name => $profile) { + $profile_content =''; + foreach($profile as $forms => $budget_places){ + $profile_content .= " {$forms} - " . " {$budget_places}
"; + } + $mgtu .= "
+
+

+ +

+
+
+ $profile_content +
+
+
+
" ; + } + } + + + + + + + $filial = '222'; @@ -71,8 +101,8 @@ class DirectonHtmlBuilder
- МГТУ | - Филиал МГТУ (пос. Яблоновский) + МГТУ | + Филиал МГТУ (пос. Яблоновский)
@@ -100,7 +130,23 @@ class DirectonHtmlBuilder
- Места для обучения: + + + Места для обучения:
+
+ +
+