@extends('layouts.admin') @section('title', $survey->title) @section('header', $survey->title) @section('subheader', 'Survey Details') @section('header-actions')
@if($survey->status === 'active') Invite Users @endif Back
@endsection @section('content')

{{ $invitationStats['total'] }}

Total Invited

{{ $invitationStats['completed'] }}

Completed

{{ $invitationStats['pending'] }}

Pending

{{ $invitationStats['total'] > 0 ? round(($invitationStats['completed'] / $invitationStats['total']) * 100) : 0 }}%

Response Rate

Survey Information

{{ $survey->description ?? 'No description provided' }}

{{ $survey->estimated_minutes ?? 10 }} minutes

{{ $survey->created_at->format('F j, Y') }}

@if($survey->status === 'active') Active @elseif($survey->status === 'draft') Draft @else Closed @endif

@if($survey->max_responses)

Response Limit

Progress {{ $survey->getCompletedResponsesCount() }} / {{ $survey->max_responses }} responses
@if($survey->hasReachedLimit())

Response limit reached - Survey closed

@else

{{ $survey->getRemainingResponses() }} responses remaining

@endif
@endif
@if($survey->status === 'active')
Active

Collecting responses

@elseif($survey->status === 'draft')
Draft

Not yet published

@else
Closed

No longer accepting

@endif

Quick Actions

@if($survey->status === 'active') Invite Users @endif View Analytics View Reports
@if($survey->links && $survey->links->where('is_active', true)->count() > 0)

Survey Link

@php $link = $survey->links->where('is_active', true)->first(); @endphp

Share this link to collect responses

@endif
@endsection