@extends('layouts.admin') @section('title', 'Detailed Report') @section('header', 'Detailed Analysis Report') @section('subheader', 'Comprehensive breakdown of survey results') @section('header-actions') Download PDF @endsection @section('content') @include('company.partials.survey-selector') @include('company.partials.low-volume-warning')
{{ $survey->title }}
{{ $survey->starts_at ? $survey->starts_at->format('M j') : 'N/A' }} - {{ $survey->ends_at ? $survey->ends_at->format('M j, Y') : 'Ongoing' }}
{{ $responseStats['total_responses'] }}
{{ number_format($analytics->grand_mean ?? 0, 2) }} / 5.00
| Category | Score | Status | Visual |
|---|---|---|---|
| {{ $category->icon }} {{ $category->name }} | {{ round($score) }}% | {{ $interpretation['label'] }} |
|
| Department | @foreach($heatmapData['categories'] as $cat){{ $cat['icon'] }} | @endforeach
|---|---|
| {{ $row['department'] }} | @foreach($heatmapData['categories'] as $cat) @php $score = $row[$cat['slug']] ?? null; $interpretation = $score !== null ? \App\Models\Category::getScoreInterpretation($score) : null; @endphp@if($score !== null) {{ round($score) }} @else - @endif | @endforeach
Heatmap unavailable due to insufficient data per department (minimum 5 required for anonymity).
| # | Question | Mean | Favorability |
|---|---|---|---|
| {{ $index + 1 }} |
{{ Str::limit($q['text'], 70) }} {{ $q['category'] }} |
{{ number_format($q['mean'] ?? 0, 2) }} | {{ round($q['favorability'] ?? 0) }}% |
{{ $openResponses }}
Total open-ended comments collected