{{-- Resource Allocation Card Component - AdminLTE style 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 $iconBgColors = [ 'primary' => 'background-color: rgba(13, 110, 253, 0.1);', 'success' => 'background-color: rgba(25, 135, 84, 0.1);', 'warning' => 'background-color: rgba(255, 193, 7, 0.1);', 'danger' => 'background-color: rgba(220, 53, 69, 0.1);', 'info' => 'background-color: rgba(13, 202, 240, 0.1);', ]; $iconTextColors = [ 'primary' => 'color: var(--lte-primary, #0d6efd);', 'success' => 'color: var(--lte-success, #198754);', 'warning' => 'color: var(--lte-warning, #ffc107);', 'danger' => 'color: var(--lte-danger, #dc3545);', 'info' => 'color: var(--lte-info, #0dcaf0);', ]; @endphp
class(['allocation-card-lte']) }}>
@if($icon)
@endif

{{ $label }}

{{ $usageSummary }}

{{ $entitlementLabel }}

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

{{ $description }}

@endif