@if(isset($engagementBreakdown) && isset($lowVolumeWarnings))
@foreach(['engaged', 'not_engaged', 'actively_disengaged', 'unknown'] as $key) @php $data = $engagementBreakdown[$key]; @endphp @if($key !== 'unknown' || $data['count'] > 0)
@for($i = 0; $i < min(5, max(1, ceil($data['percentage'] / 20))); $i++) @endfor
@if($lowVolumeWarnings['show_percentages']) {{ round($data['percentage']) }}% @else {{ $data['count'] }} @endif

{{ $data['label'] }}

{{ $data['description'] }}

@if($lowVolumeWarnings['show_percentages'])

({{ $data['count'] }} employees)

@endif
@endif @endforeach
@endif