@extends('layouts.admin') @section('title', 'Open Comments') @section('header', 'Open Comments') @section('subheader', 'Anonymous feedback from employees') @section('content') @include('company.partials.survey-selector')
{{ count($comments) }}
Total Comments
{{ $questions->count() }}
Open Questions
{{ $survey->responses()->where('is_complete', true)->count() }}
Total Responses
@if($questions->count() > 1)
@endif

All Comments

@if(count($comments) > 0)
@foreach($comments as $index => $comment)
💬

{{ $comment->answer_text }}

{{ Str::limit($comment->question_text, 40) }} @if(isset($comment->department) && $comment->department) {{ $comment->department }} @endif
@endforeach
@else

No Comments Yet

Open-ended responses will appear here once submitted.

@endif
@push('scripts') @endpush @endsection