From 9c695340dd66f838509eaf5c6a01e1b5da73c42d Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 6 Apr 2026 23:55:37 -0300 Subject: [PATCH 1/2] fix: remove basic plan from pricing comparison Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- source/pricing.blade.php | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/source/pricing.blade.php b/source/pricing.blade.php index e49d90af..6b3583e3 100644 --- a/source/pricing.blade.php +++ b/source/pricing.blade.php @@ -57,6 +57,13 @@ class="ud-single-pricing first-item{{ $content->isActive ? ' active' : ''}} wow
+ @php + $comparePlans = array_map(static fn ($planName) => [ + 'key' => strtolower($planName), + 'label' => $planName, + ], array_keys((array) $page->prices)); + @endphp +

{{ $page->t('Compare plans')}}

@@ -65,20 +72,21 @@ class="ud-single-pricing first-item{{ $content->isActive ? ' active' : ''}} wow - {{ $page->t('Basic') }} - {{ $page->t('Business') }} + @foreach ($comparePlans as $plan) + {{ $page->t($plan['label']) }} + @endforeach @foreach($page->optionsServicesLibresign as $item => $optionList) {{ $page->t($optionList->service) }} - @foreach (['basic', 'business'] as $item) + @foreach ($comparePlans as $plan) - @if (is_bool($optionList->$item)) - + @if (is_bool($optionList->{$plan['key']})) + @else - {{ $page->t($optionList->$item) }} + {{ $page->t($optionList->{$plan['key']}) }} @endif @endforeach From 4a051fa0c5855b4f087e813e3cda18e5a400735a Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Tue, 7 Apr 2026 00:01:20 -0300 Subject: [PATCH 2/2] fix: handle missing pricing comparison values Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- source/pricing.blade.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/pricing.blade.php b/source/pricing.blade.php index 6b3583e3..e99f762f 100644 --- a/source/pricing.blade.php +++ b/source/pricing.blade.php @@ -82,11 +82,12 @@ class="ud-single-pricing first-item{{ $content->isActive ? ' active' : ''}} wow {{ $page->t($optionList->service) }} @foreach ($comparePlans as $plan) + @php($planValue = $optionList->{$plan['key']} ?? null) - @if (is_bool($optionList->{$plan['key']})) - - @else - {{ $page->t($optionList->{$plan['key']}) }} + @if (is_bool($planValue)) + + @elseif (is_string($planValue) && $planValue !== '') + {{ $page->t($planValue) }} @endif @endforeach