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
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 }} + + + + +