{{ $survey->title }}

{{ $survey->description }}

{{ $survey->questions->count() }}
Questions
{{ $survey->responses->count() }}
Responses
@php $totalInvitations = $survey->invitations ? $survey->invitations->count() : 0; $responseRate = $totalInvitations > 0 ? round(($survey->responses->count() / $totalInvitations) * 100, 1) : 0; @endphp {{ $responseRate }}%
Response Rate
{{ ucfirst($survey->status) }}
Status
{{ $responseRate }}%
Completion Rate
Edit Survey Back to Surveys
@if(session('success')) @endif @if(session('invitation_links') && count(session('invitation_links')) > 0)
Invitation Links Ready {{ count(session('invitation_links')) }} generated
@foreach(session('invitation_links') as $inviteLink)
{{ $inviteLink['name'] ?? 'Recipient' }} {{ $inviteLink['email'] ?? '' }}
@endforeach Send any of these links on WhatsApp. When tapped, the recipient opens the survey directly.
@endif
Survey Questions
@forelse($survey->questions as $index => $question)
{{ $index + 1 }}
{{ $question->question }}
{{ ucfirst(str_replace('_', ' ', $question->type)) }} @if($question->is_required) Required @endif
@if($question->type === 'multiple_choice' && $question->options) @php $options = is_string($question->options) ? json_decode($question->options, true) : $question->options; @endphp @if(is_array($options) && count($options) > 0)
Options:
@foreach($options as $option)
{{ $option }}
@endforeach
@endif @endif @if($question->type === 'rating')
Rating Scale:
@for($i = 1; $i <= 5; $i++)
{{ $i }}
@endfor
@endif
@empty
No questions added yet

This survey doesn't have any questions.

@endforelse
Survey Information
Status {{ ucfirst($survey->status) }}
Created {{ $survey->created_at->format('M j, Y g:i A') }}
@if($survey->expires_at)
Expires {{ $survey->expires_at->format('M j, Y') }} @if($survey->expires_at->isPast()) Expired @else Active @endif
@endif
Questions {{ $survey->questions->count() }}
Responses {{ $survey->responses->count() }}
@if($survey->allow_anonymous)
Anonymous Responses Allowed
@endif
Shareable Survey Link
Use this link for WhatsApp sharing. If invitation links exist, tokenized link is used. @php $appHost = parse_url((string) config('app.url'), PHP_URL_HOST); @endphp @if(in_array($appHost, ['127.0.0.1', 'localhost', '[::1]'], true))
This site is configured as {{ config('app.url') }}. Links only work on this computer unless you deploy to a public URL and set APP_URL in .env (or use a tunnel such as ngrok).
@endif
Share Survey
Share this survey with guests, staff, or clients
Recent Responses
View All
@if($survey->responses->count() > 0) @foreach($survey->responses->take(5) as $response)
{{ $response->guest ? substr($response->guest->name ?? 'G', 0, 1) : 'A' }}
{{ $response->guest ? $response->guest->name : 'Anonymous' }} @if($response->guest && $response->guest->room_number) (Room {{ $response->guest->room_number }}) @endif
{{ $response->created_at->diffForHumans() }}
{{ $response->answers->count() }} answers
@if($response->answers->count() > 0)
Latest answer:
{{ Str::limit($response->answers->last()->answer, 100) }}
@endif
@endforeach @else
No responses yet

Share your survey to start collecting responses

@endif