feat: add storage over-provisioned warning for exceeded quota

This commit is contained in:
2025-12-05 06:52:31 -05:00
parent 61b74aa0a1
commit 21cd954bc2

View File

@@ -115,6 +115,24 @@
</div>
@endif
<!-- Storage Over-Provisioned Warning -->
@if($totalAllocatedStorage > $maxAllowedStorage && $maxAllowedStorage > 0)
<div class="bg-danger/10 border border-danger/30 rounded-lg p-4">
<div class="flex items-center gap-3">
<div class="flex-shrink-0">
<x-ri-alarm-warning-line class="size-5 text-danger" />
</div>
<div>
<h4 class="text-sm font-semibold text-danger">Storage Quota Exceeded</h4>
<p class="text-sm text-danger/80 mt-0.5">
Your server has <strong>{{ number_format($totalAllocatedStorage, 1) }} GB</strong> of storage configured, but your plan only allows <strong>{{ number_format($maxAllowedStorage, 1) }} GB</strong>.
The server cannot be started until storage is reduced to within your plan limits. Please delete drives or upgrade your service to allow this configuration.
</p>
</div>
</div>
</div>
@endif
<!-- Storage Usage Overview -->
<div class="bg-background-secondary border border-neutral rounded-lg p-5">
<div class="flex flex-col sm:flex-row sm:items-center justify-between gap-4 mb-4">