From 34e2163da181bd4d11b20f4f85097622bf69f337 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Tue, 30 Jun 2026 11:39:25 +0000 Subject: [PATCH] Show consolidated prepaid totals on plan pricing cards. When 6/12/24 month Paystack is selected, Pro and Business prices display the full term amount instead of /mo. Co-authored-by: Cursor --- .../components/plan-tier-price.blade.php | 23 +++++++++++++++++++ resources/views/frontdesk/pro/index.blade.php | 5 +--- 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 resources/views/components/plan-tier-price.blade.php diff --git a/resources/views/components/plan-tier-price.blade.php b/resources/views/components/plan-tier-price.blade.php new file mode 100644 index 0000000..aaf5f86 --- /dev/null +++ b/resources/views/components/plan-tier-price.blade.php @@ -0,0 +1,23 @@ +@props([ + 'currency' => 'GHS', + 'monthlyMinor' => 0, + 'prepaidMinor' => null, + 'monthlyDisplay' => null, + 'monthlySuffix' => '/mo', + 'dark' => false, +]) + +@php + $prepaidBase = (int) ($prepaidMinor ?? $monthlyMinor); + $monthlyFormatted = $monthlyDisplay ?? number_format((int) $monthlyMinor / 100, 0); + $muted = $dark ? 'text-slate-300' : 'text-slate-500'; + $text = $dark ? 'text-white' : 'text-slate-900'; +@endphp + +

merge(['class' => "mt-2 text-3xl font-bold {$text}"]) }}> + {{ $currency }} {{ $monthlyFormatted }}{{ $monthlySuffix }} + + + + +

diff --git a/resources/views/frontdesk/pro/index.blade.php b/resources/views/frontdesk/pro/index.blade.php index 7a21d2a..b2e450e 100644 --- a/resources/views/frontdesk/pro/index.blade.php +++ b/resources/views/frontdesk/pro/index.blade.php @@ -51,10 +51,7 @@ {{-- Pro --}}

Pro

-

{{ $currency }} {{ $proPrice }}/mo

-

- -

+

Unlimited branches & kiosks

  • Unlimited host email alerts