{{-- php setup-----------------------------------------}} @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
{{-- Buttons top-right --}}
@if($bewertungId == $history->first()->bewertung_id) {{-- edit --}} @can('edit',[$history->first()]) {{ __('general.Edit') }} @else
{{ __('general.Edit') }}
@endcan @endif {{-- export --}} @can('export', [$history->first()]) {{ __('general.Export') }} @else
{{ __('general.Export') }}
@endcan @can('delete',[$history->first()]) @endcan

@switch($modus) @case('DS') {{__('general.Security requirements')}} @break @default {{__('general.Risk of failure')}} @break @endswitch

Risiko Gesamtbewertung

{{-- --}} {{-- --}}

Workflow

{{ __('general.Completed') }}