fix: remove upgrade button from services page

This commit is contained in:
2026-03-01 19:30:20 -05:00
parent 80e4fa6c41
commit a98bbd6d82

View File

@@ -288,21 +288,6 @@
<h3 class="uppercase font-black text-color-base text-sm tracking-wider">{{ __('services.actions') }}</h3>
</div>
<div class="space-y-4">
@if($service->upgradable)
<a href="{{ route('services.upgrade', $service->id) }}" class="block">
<button class="group w-full flex items-center justify-center gap-3 px-6 py-4 bg-gradient-to-r from-primary to-primary/80 text-white font-semibold rounded-2xl transition-all duration-300 transform hover:scale-105 hover:shadow-xl">
<x-ri-upload-cloud-2-line class="size-5 transition-transform group-hover:scale-110" />
<span>{{ __('services.upgrade') }}</span>
</button>
</a>
@endif
@if($service->upgrade()->where('status', 'pending')->exists())
<button class="group w-full flex items-center justify-center gap-3 px-6 py-4 bg-gradient-to-r from-warning/80 to-warning/60 text-white font-semibold rounded-2xl transition-all duration-300 transform hover:scale-105 hover:shadow-xl"
@click="Alpine.store('notifications').addNotification([{message: '{{ __('services.upgrade_pending') }}', type: 'error'}])">
<x-ri-upload-cloud-2-line class="size-5 transition-transform group-hover:scale-110" />
<span>{{ __('services.upgrade') }}</span>
</button>
@endif
@if($service->cancellable)
<button class="group w-full flex items-center justify-center gap-3 px-6 py-4 bg-gradient-to-r from-error to-error/80 text-white font-semibold rounded-2xl transition-all duration-300 transform hover:scale-105 hover:shadow-xl" wire:click="$set('showCancel', true)">
<x-ri-spam-line class="size-5 transition-transform group-hover:scale-110" />
@@ -311,7 +296,7 @@
</button>
@endif
@if(($service->upgradable || $service->cancellable) && count($buttons) > 0)
@if($service->cancellable && count($buttons) > 0)
<div class="border-t border-neutral/20 my-4"></div>
@endif