From 9d0631a2370aab5102633e788affba448604a0a8 Mon Sep 17 00:00:00 2001 From: Simon Hamp Date: Fri, 10 Apr 2026 12:37:43 +0100 Subject: [PATCH] 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 --- package-lock.json | 2 +- .../livewire/customer/plugins/show.blade.php | 23 ++++--------------- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/package-lock.json b/package-lock.json index 67cf3e51..2f4dfbb4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "hungry-toucan", + "name": "cosmic-wasp", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/resources/views/livewire/customer/plugins/show.blade.php b/resources/views/livewire/customer/plugins/show.blade.php index 838172bd..f1313d2c 100644 --- a/resources/views/livewire/customer/plugins/show.blade.php +++ b/resources/views/livewire/customer/plugins/show.blade.php @@ -242,16 +242,14 @@
@foreach (\App\Enums\PluginTier::cases() as $pluginTier) @php - $prices = $pluginTier->getPrices(); - $subscriberPrice = $prices[\App\Enums\PriceTier::Subscriber->value] / 100; - $regularPrice = $prices[\App\Enums\PriceTier::Regular->value] / 100; + $regularPrice = $pluginTier->getPrices()[\App\Enums\PriceTier::Regular->value] / 100; @endphp @endforeach @@ -445,11 +443,8 @@ class="block text-sm text-gray-500 file:mr-4 file:rounded-md file:border-0 file:
@if ($plugin->isPaid() && $plugin->tier) - @php - $regularPrice = $plugin->tier->getPrices()[\App\Enums\PriceTier::Regular->value] / 100; - @endphp - {{ $plugin->tier->label() }} — ${{ number_format($regularPrice) }} + {{ $plugin->tier->label() }} @elseif ($plugin->isPaid()) @@ -528,12 +523,7 @@ class="block text-sm text-gray-500 file:mr-4 file:rounded-md file:border-0 file: Type @if ($plugin->isPaid() && $plugin->tier) - @php - $prices = $plugin->tier->getPrices(); - $subscriberPrice = $prices[\App\Enums\PriceTier::Subscriber->value] / 100; - $regularPrice = $prices[\App\Enums\PriceTier::Regular->value] / 100; - @endphp - Paid — {{ $plugin->tier->label() }} (${{ number_format($subscriberPrice) }} – ${{ number_format($regularPrice) }}) + Paid — {{ $plugin->tier->label() }} @elseif ($plugin->isPaid()) Paid @else @@ -716,11 +706,8 @@ class="block text-sm text-gray-500 file:mr-4 file:rounded-md file:border-0 file: @if ($plugin->isPaid() && $plugin->tier) - @php - $regularPrice = $plugin->tier->getPrices()[\App\Enums\PriceTier::Regular->value] / 100; - @endphp - {{ $plugin->tier->label() }} — ${{ number_format($regularPrice) }} + {{ $plugin->tier->label() }} @elseif ($plugin->isPaid())