@php $isDenison = !empty($analytics->category_scores) && isset($analytics->category_scores['denison-mission']); $dScores = $analytics->category_scores ?? []; if ($isDenison) { $mission = $dScores['denison-mission'] ?? 0; $adaptability = $dScores['denison-adaptability'] ?? 0; $involvement = $dScores['denison-involvement'] ?? 0; $consistency = $dScores['denison-consistency'] ?? 0; $overallCulture = round(($mission + $adaptability + $involvement + $consistency) / 4, 1); $externalFocus = round(($mission + $adaptability) / 2, 1); $internalFocus = round(($involvement + $consistency) / 2, 1); $flexible = round(($adaptability + $involvement) / 2, 1); $stable = round(($mission + $consistency) / 2, 1); } function detailedPdfColor($score) { if ($score >= 80) return '#16a34a'; if ($score >= 70) return '#65a30d'; if ($score >= 60) return '#ca8a04'; if ($score >= 50) return '#ea580c'; return '#dc2626'; } function detailedPdfLabel($score) { if ($score >= 80) return 'Strong'; if ($score >= 70) return 'Healthy'; if ($score >= 60) return 'Moderate'; if ($score >= 50) return 'Needs Work'; return 'Critical'; } @endphp
{{ $isDenison ? 'Detailed Culture Analysis Report' : 'Detailed Analysis Report' }} | Generated: {{ now()->format('F j, Y') }}
|
Internal + Flexible
Involvement
{{ round($involvement) }}%
Empowerment | Team Orientation | Capability Dev.
|
External + Flexible
Adaptability
{{ round($adaptability) }}%
Creating Change | Stakeholder Focus | Org. Learning
|
|
Internal + Stable
Consistency
{{ round($consistency) }}%
Core Values | Agreement | Coordination
|
External + Stable
Mission
{{ round($mission) }}%
Strategic Direction | Goals | Vision
|
| {{ $isDenison ? 'Trait' : 'Category' }} | Score | Status | Visual |
|---|---|---|---|
| {{ $category->icon }} {{ $category->name }} | {{ round($score) }}% | {{ $interpretation['label'] }} |
|
| Department | @foreach($heatmapData['categories'] as $cat){{ $cat['icon'] }} {{ Str::limit($cat['name'], 10) }} | @endforeach
|---|---|
| {{ Str::limit($row['department'], 25) }} | @foreach($heatmapData['categories'] as $cat) @php $score = $row[$cat['slug']] ?? null; if ($score !== null) { if ($score >= 75) $bg = '#16a34a'; elseif ($score >= 65) $bg = '#65a30d'; elseif ($score >= 55) $bg = '#ca8a04'; elseif ($score >= 45) $bg = '#ea580c'; else $bg = '#dc2626'; } @endphp@if($score !== null) {{ round($score) }} @else - @endif | @endforeach
Departments with fewer than 5 respondents are hidden to protect anonymity.
Heatmap unavailable - insufficient responses per department (minimum 5 required for anonymity protection).
| # | Question | {{ $isDenison ? 'Trait' : 'Category' }} | Mean | Fav % |
|---|---|---|---|---|
| {{ $index + 1 }} | {{ Str::limit($q['text'], 50) }} | {{ $q['category'] }} | {{ number_format($q['mean'] ?? 0, 2) }} | {{ round($q['favorability'] ?? 0) }}% |
| # | Question | {{ $isDenison ? 'Trait' : 'Category' }} | Mean | Fav % |
|---|---|---|---|---|
| {{ $index + 1 }} | {{ Str::limit($q['text'], 50) }} | {{ $q['category'] }} | {{ number_format($q['mean'] ?? 0, 2) }} | {{ round($q['favorability'] ?? 0) }}% |