From 2d8714de7f57b8173a48c10631d1c696feb61aa0 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Tue, 30 Jun 2026 11:39:26 +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/pos/pro/index.blade.php | 4 ++-- 2 files changed, 25 insertions(+), 2 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/pos/pro/index.blade.php b/resources/views/pos/pro/index.blade.php index 500437f..e682b10 100644 --- a/resources/views/pos/pro/index.blade.php +++ b/resources/views/pos/pro/index.blade.php @@ -58,7 +58,7 @@

Pro

-

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

+
  • Unlimited products
  • Restaurant mode
  • @@ -78,7 +78,7 @@

    Business

    -

    {{ $currency }} {{ $enterprisePrice }}/mo

    +
    • Everything in Pro
    • Multi-location