diff --git a/application/views/pages/includes/booking-form-en.php b/application/views/pages/includes/booking-form-en.php
index d91b073..b7ea7c4 100755
--- a/application/views/pages/includes/booking-form-en.php
+++ b/application/views/pages/includes/booking-form-en.php
@@ -59,40 +59,75 @@
service_category != $prevousCategory){
+ if (is_array($services) && count($services) > 0) {
+
+ // Build groups in first-seen order
+ $groups = []; // label => [items]
+ $order = []; // labels in order of first appearance
+
+ foreach ($services as $serviceItem) {
+ $label = canon_cat($serviceItem->service_category ?? '');
+ if ($label === '') $label = 'Other';
+
+ if (!isset($groups[$label])) {
+ $groups[$label] = [];
+ $order[] = $label;
+ }
+ $groups[$label][] = $serviceItem;
+ }
+
+ // Render
+ foreach ($order as $label) {
+ ?>
+
+
-
-
service_category;?>
+
+ service_name; ?>
+
+
+
+
+
+
+
+ service_price; ?>
+
+
+
+
+
+
service_description; ?>
+
+
+
+
+
+
-
-
service_name;?>
-
-
service_price;?>
-
-
-
service_description;?>
-
-
-
-
-
-
-
-
- service_category;
}
}
- ?>
+ ?>
diff --git a/application/views/pages/includes/booking-form-hu.php b/application/views/pages/includes/booking-form-hu.php
index ff3a300..d15feb6 100755
--- a/application/views/pages/includes/booking-form-hu.php
+++ b/application/views/pages/includes/booking-form-hu.php
@@ -59,39 +59,75 @@
service_category != $prevousCategory){
+ if (is_array($services) && count($services) > 0) {
+
+ // Build groups in first-seen order
+ $groups = []; // label => [items]
+ $order = []; // labels in order of first appearance
+
+ foreach ($services as $serviceItem) {
+ $label = canon_cat($serviceItem->service_category ?? '');
+ if ($label === '') $label = 'Other';
+
+ if (!isset($groups[$label])) {
+ $groups[$label] = [];
+ $order[] = $label;
+ }
+ $groups[$label][] = $serviceItem;
+ }
+
+ // Render
+ foreach ($order as $label) {
+ ?>
+
+
-
-
service_category;?>
+
+ service_name; ?>
+
+
+
+
+
+
+
+ service_price; ?>
+
+
+
+
+
+
service_description; ?>
+
+
+
+
+
+
-
-
service_name;?>
-
-
service_price;?>
-
-
-
service_description;?>
-
-
-
-
-
-
-
- service_category;
}
}
- ?>
+ ?>
diff --git a/application/views/pages/includes/booking-form-no.php b/application/views/pages/includes/booking-form-no.php
index 6345f04..40a067a 100755
--- a/application/views/pages/includes/booking-form-no.php
+++ b/application/views/pages/includes/booking-form-no.php
@@ -59,40 +59,75 @@
service_category != $prevousCategory){
- ?>
-
-
-
service_category;?>
-
-
-
-
-
service_name;?>
-
-
service_price;?>
-
-
-
service_description;?>
-
-
-
-
-
-
+if (is_array($services) && count($services) > 0) {
+
+ // Build groups in first-seen order
+ $groups = []; // label => [items]
+ $order = []; // labels in order of first appearance
+
+ foreach ($services as $serviceItem) {
+ $label = canon_cat($serviceItem->service_category ?? '');
+ if ($label === '') $label = 'Other';
+
+ if (!isset($groups[$label])) {
+ $groups[$label] = [];
+ $order[] = $label;
+ }
+ $groups[$label][] = $serviceItem;
+ }
+
+ // Render
+ foreach ($order as $label) {
+ ?>
+
+
+
+
+ service_name; ?>
+
+
+
+
+
+
+
+ service_price; ?>
+
+
+
+
+
+
service_description; ?>
+
+
+
+
+
+
service_category;
- }
}
- ?>
+ }
+ }
+ ?>