From 4fc8a80a0424dff24e49a609c0b989972825ca61 Mon Sep 17 00:00:00 2001 From: ROMANGOLIENKO Date: Mon, 18 Mar 2024 13:03:50 +0300 Subject: [PATCH] fixing directions --- app/Services/DirectonHtmlBuilder.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Services/DirectonHtmlBuilder.php b/app/Services/DirectonHtmlBuilder.php index 4774833..52bd960 100644 --- a/app/Services/DirectonHtmlBuilder.php +++ b/app/Services/DirectonHtmlBuilder.php @@ -60,13 +60,16 @@ class DirectonHtmlBuilder //exit(); if (array_key_exists('educationalInstitution', $direction)) { foreach ($direction['educationalInstitution'] as $educationalInstitution_name => $educationalInstitution) { - $profile_out = '
'; + $profiles .= "

{$educationalInstitution_name}

"; foreach ($educationalInstitution as $profile_name => $profile) { + $profile_out = '
'; foreach ($profile as $key => $value) { $profile_out .= "{$key} - {$value['budget_places']}
"; } $tmp = str_replace(' ', '', $profile_name); + $tmp = str_replace(',', '', $tmp); +// $print_r = '
' . print_r($direction,1) . '
';
                     $profiles .= "
                                   
@@ -78,6 +81,9 @@ class DirectonHtmlBuilder
$profile_out + + +