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())