From 2960c5574e5a5d22b24f3e9ae407bd9f989623d5 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 --- resources/views/care/pro/index.blade.php | 16 ++++++++----- .../components/plan-tier-price.blade.php | 23 +++++++++++++++++++ 2 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 resources/views/components/plan-tier-price.blade.php diff --git a/resources/views/care/pro/index.blade.php b/resources/views/care/pro/index.blade.php index e5df0bf..91937e9 100644 --- a/resources/views/care/pro/index.blade.php +++ b/resources/views/care/pro/index.blade.php @@ -50,10 +50,7 @@ {{-- Pro --}}

Pro

-

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

-

- -

+

Unlimited branches

  • Full clinical workflows
  • @@ -92,8 +89,15 @@ {{-- Enterprise --}}

    Enterprise

    -

    {{ $currency }} {{ $enterprisePerBranch }}/branch/mo

    -

    + +

    @if ($branchCount > 0) {{ $branchCount }} active {{ str('branch')->plural($branchCount) }} = {{ $currency }} {{ $enterpriseTotal }}/mo @else 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 }} + + + + +