@extends('layouts.admin') @section('title', 'Invite Users') @section('header', 'Invite Users') @section('subheader', $survey->title) @section('header-actions') Back to Survey @endsection @section('content')

Survey Link

@if($links->count() > 0) @foreach($links as $link)

Share this link with employees via email, chat, or any communication channel.

@endforeach @else

No distribution links available. Please contact your administrator.

@endif

Email Invitations

@csrf

Enter one email per line, or separate with commas

Import from CSV

@csrf

CSV file should have a column header named "email"

@if($invitations->count() > 0)

Invited Users

{{ $invitations->total() }} total
@foreach($invitations as $invitation) @endforeach
Email Status Invited On Completed
{{ $invitation->email }} @if($invitation->completed_at) Completed @elseif($invitation->sent_at) Pending @else Queued @endif {{ $invitation->sent_at ? $invitation->sent_at->format('M d, Y') : '-' }} {{ $invitation->completed_at ? $invitation->completed_at->format('M d, Y H:i') : '-' }}
@if($invitations->hasPages()) @endif
@endif

Invitation Statistics

{{ $stats['total'] }}
Total Invited
{{ $stats['completed'] }}
Completed
{{ $stats['pending'] }}
Pending
{{ $responseCount }}
Responses
@if($stats['total'] > 0)
Completion Rate {{ round(($stats['completed'] / $stats['total']) * 100) }}%
@endif
@if($stats['pending'] > 0)

Send Reminders

{{ $stats['pending'] }} people haven't completed the survey yet.

@csrf
@endif @if($survey->max_responses)

Response Limit

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

Response limit reached

@else

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

@endif
@endif
@endsection