@extends('layouts.admin') @section('title', 'Question Analysis') @section('header', 'Question Analysis') @section('subheader', 'All questions ranked by favorability score') @section('content') @include('company.partials.survey-selector') @include('company.partials.low-volume-warning')
{{ $questions->count() }}
Total Questions
{{ $questions->where('favorability', '>=', 70)->count() }}
Strong (70%+)
{{ $questions->where('favorability', '<', 50)->count() }}
Needs Attention (<50%)

All Questions Ranked

Sorted by favorability (highest first)
@foreach($questions as $index => $q) @php $interpretation = \App\Models\Category::getScoreInterpretation($q['favorability'] ?? 0); @endphp @endforeach
# Question Category Mean Favorability
{{ $index + 1 }}

{{ $q['text'] }}

{{ $q['category_icon'] }} {{ $q['category'] }} {{ number_format($q['mean'] ?? 0, 2) }}
{{ round($q['favorability'] ?? 0) }}%
@endsection