Skip to content

Commit 9d0631a

Browse files
simonhampclaude
andcommitted
Remove start/subscriber price from pricing tier displays in dashboard
Show only the regular price on tier selection radio buttons and remove price numbers entirely from Type summary pills and text, leaving just the tier name (Bronze/Silver/Gold). Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent 960e4a2 commit 9d0631a

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/views/livewire/customer/plugins/show.blade.php

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -242,16 +242,14 @@
242242
<div class="mt-6 space-y-4">
243243
@foreach (\App\Enums\PluginTier::cases() as $pluginTier)
244244
@php
245-
$prices = $pluginTier->getPrices();
246-
$subscriberPrice = $prices[\App\Enums\PriceTier::Subscriber->value] / 100;
247-
$regularPrice = $prices[\App\Enums\PriceTier::Regular->value] / 100;
245+
$regularPrice = $pluginTier->getPrices()[\App\Enums\PriceTier::Regular->value] / 100;
248246
@endphp
249247
<label class="relative flex cursor-pointer rounded-lg border p-4 transition focus:outline-none"
250248
:class="$wire.tier === '{{ $pluginTier->value }}' ? 'border-indigo-500 bg-indigo-50 dark:border-indigo-400 dark:bg-indigo-950/30' : 'border-gray-200 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-700/50'">
251249
<input type="radio" wire:model.live="tier" value="{{ $pluginTier->value }}" class="sr-only" />
252250
<span class="flex flex-1 items-center justify-between">
253251
<span class="text-sm font-medium text-gray-900 dark:text-white">{{ $pluginTier->label() }}</span>
254-
<span class="text-lg font-semibold text-gray-900 dark:text-white">${{ number_format($subscriberPrice) }} – ${{ number_format($regularPrice) }}</span>
252+
<span class="text-lg font-semibold text-gray-900 dark:text-white">${{ number_format($regularPrice) }}</span>
255253
</span>
256254
</label>
257255
@endforeach
@@ -445,11 +443,8 @@ class="block text-sm text-gray-500 file:mr-4 file:rounded-md file:border-0 file:
445443
</div>
446444
</div>
447445
@if ($plugin->isPaid() && $plugin->tier)
448-
@php
449-
$regularPrice = $plugin->tier->getPrices()[\App\Enums\PriceTier::Regular->value] / 100;
450-
@endphp
451446
<span class="inline-flex shrink-0 items-center text-center rounded-full bg-emerald-100 px-2.5 py-0.5 text-xs font-medium text-emerald-800 dark:bg-emerald-900/30 dark:text-emerald-400">
452-
{{ $plugin->tier->label() }}&nbsp;&mdash;&nbsp;${{ number_format($regularPrice) }}
447+
{{ $plugin->tier->label() }}
453448
</span>
454449
@elseif ($plugin->isPaid())
455450
<span class="inline-flex shrink-0 items-center text-center rounded-full bg-emerald-100 px-2.5 py-0.5 text-xs font-medium text-emerald-800 dark:bg-emerald-900/30 dark:text-emerald-400">
@@ -528,12 +523,7 @@ class="block text-sm text-gray-500 file:mr-4 file:rounded-md file:border-0 file:
528523
<flux:heading size="lg">Type</flux:heading>
529524
<flux:text class="mt-1">
530525
@if ($plugin->isPaid() && $plugin->tier)
531-
@php
532-
$prices = $plugin->tier->getPrices();
533-
$subscriberPrice = $prices[\App\Enums\PriceTier::Subscriber->value] / 100;
534-
$regularPrice = $prices[\App\Enums\PriceTier::Regular->value] / 100;
535-
@endphp
536-
Paid &mdash; {{ $plugin->tier->label() }} (${{ number_format($subscriberPrice) }} – ${{ number_format($regularPrice) }})
526+
Paid &mdash; {{ $plugin->tier->label() }}
537527
@elseif ($plugin->isPaid())
538528
Paid
539529
@else
@@ -716,11 +706,8 @@ class="block text-sm text-gray-500 file:mr-4 file:rounded-md file:border-0 file:
716706
</div>
717707
</div>
718708
@if ($plugin->isPaid() && $plugin->tier)
719-
@php
720-
$regularPrice = $plugin->tier->getPrices()[\App\Enums\PriceTier::Regular->value] / 100;
721-
@endphp
722709
<span class="inline-flex shrink-0 items-center text-center rounded-full bg-emerald-100 px-2.5 py-0.5 text-xs font-medium text-emerald-800 dark:bg-emerald-900/30 dark:text-emerald-400">
723-
{{ $plugin->tier->label() }}&nbsp;&mdash;&nbsp;${{ number_format($regularPrice) }}
710+
{{ $plugin->tier->label() }}
724711
</span>
725712
@elseif ($plugin->isPaid())
726713
<span class="inline-flex shrink-0 items-center text-center rounded-full bg-emerald-100 px-2.5 py-0.5 text-xs font-medium text-emerald-800 dark:bg-emerald-900/30 dark:text-emerald-400">

0 commit comments

Comments
 (0)