{{-- Resource Allocation Card Component - LucentUI Theme Migrated from AdminLTE to Tailwind For displaying CPU, Memory, and other resource allocation vs entitlement Usage: --}} @props([ 'label', 'percent' => null, 'usageSummary', 'entitlementLabel', 'description' => null, 'gradient' => 'linear-gradient(90deg, #0d6efd 0%, #6f42c1 100%)', 'badge' => null, 'icon' => null, 'iconColor' => 'primary', ]) @php $iconBgClasses = [ 'primary' => 'bg-primary/10', 'success' => 'bg-success/10', 'warning' => 'bg-warning/10', 'danger' => 'bg-error/10', 'info' => 'bg-info/10', ]; $iconTextClasses = [ 'primary' => 'text-primary', 'success' => 'text-success', 'warning' => 'text-warning', 'danger' => 'text-error', 'info' => 'text-info', ]; @endphp
class(['bg-background border border-neutral rounded-lg p-5 shadow-sm transition-colors duration-200 hover:bg-background-secondary/30']) }}>
@if($icon)
@endif

{{ $label }}

{{ $usageSummary }}

{{ $entitlementLabel }}

@if($badge) {{ $badge['label'] ?? '' }} @endif
@if(!is_null($percent))
Usage {{ $percent }}%
@endif @if($description)

{{ $description }}

@endif