@php function getGradientColor($value): string { $t = ($value - 1) / 4; // Max RGB value slightly dimmed (from 255 down to ~220) $max = 230; $min = 20; if ($t <= 0.5) { // Green → Yellow (0,max,0) to (max,max,0) $r = (int)(2 * $t * $max); $g = $max; } else { // Yellow → Red (max,max,0) to (max,0,0) $r = $max; $g = (int)((1 - 2 * ($t - 0.5)) * $max); } $b = $min; // we’re staying on the warm spectrum return "rgb($r, $g, $b, 0.9)"; } @endphp
{{-- --}}
@foreach($risk_Bewertungen as $index => $bewertung)
Status
%
Modus
{{__('general.Asset')}}
Werteart
Prozess
Version
BIA
Einfluß auf die Geschäftstätigkeit
RoE
Risiko des Ausfalls
RL
Risiko-Level (Gesamtbewertung)
Zugew.
Bearb.
Aktionen