|
242 | 242 | <div class="mt-6 space-y-4"> |
243 | 243 | @foreach (\App\Enums\PluginTier::cases() as $pluginTier) |
244 | 244 | @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; |
248 | 246 | @endphp |
249 | 247 | <label class="relative flex cursor-pointer rounded-lg border p-4 transition focus:outline-none" |
250 | 248 | :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'"> |
251 | 249 | <input type="radio" wire:model.live="tier" value="{{ $pluginTier->value }}" class="sr-only" /> |
252 | 250 | <span class="flex flex-1 items-center justify-between"> |
253 | 251 | <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> |
255 | 253 | </span> |
256 | 254 | </label> |
257 | 255 | @endforeach |
@@ -445,11 +443,8 @@ class="block text-sm text-gray-500 file:mr-4 file:rounded-md file:border-0 file: |
445 | 443 | </div> |
446 | 444 | </div> |
447 | 445 | @if ($plugin->isPaid() && $plugin->tier) |
448 | | - @php |
449 | | - $regularPrice = $plugin->tier->getPrices()[\App\Enums\PriceTier::Regular->value] / 100; |
450 | | - @endphp |
451 | 446 | <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() }} — ${{ number_format($regularPrice) }} |
| 447 | + {{ $plugin->tier->label() }} |
453 | 448 | </span> |
454 | 449 | @elseif ($plugin->isPaid()) |
455 | 450 | <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: |
528 | 523 | <flux:heading size="lg">Type</flux:heading> |
529 | 524 | <flux:text class="mt-1"> |
530 | 525 | @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 — {{ $plugin->tier->label() }} (${{ number_format($subscriberPrice) }} – ${{ number_format($regularPrice) }}) |
| 526 | + Paid — {{ $plugin->tier->label() }} |
537 | 527 | @elseif ($plugin->isPaid()) |
538 | 528 | Paid |
539 | 529 | @else |
@@ -716,11 +706,8 @@ class="block text-sm text-gray-500 file:mr-4 file:rounded-md file:border-0 file: |
716 | 706 | </div> |
717 | 707 | </div> |
718 | 708 | @if ($plugin->isPaid() && $plugin->tier) |
719 | | - @php |
720 | | - $regularPrice = $plugin->tier->getPrices()[\App\Enums\PriceTier::Regular->value] / 100; |
721 | | - @endphp |
722 | 709 | <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() }} — ${{ number_format($regularPrice) }} |
| 710 | + {{ $plugin->tier->label() }} |
724 | 711 | </span> |
725 | 712 | @elseif ($plugin->isPaid()) |
726 | 713 | <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