From a9f9a8f0fe641840c3c22f6e2aecc596c8322b03 Mon Sep 17 00:00:00 2001 From: ROMANGOLIENKO Date: Fri, 22 Mar 2024 16:33:16 +0300 Subject: [PATCH] fixing budget_places button --- app/Services/DirectonHtmlBuilder.php | 52 ++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 3 deletions(-) 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
- Места для обучения: + + + Места для обучения:
+
+ +
+