@extends('voyager::master') @section('page_title', __('voyager::generic.view').' '.$dataType->display_name_singular) @section('page_header')

{{ __('voyager::generic.viewing') }} {{ ucfirst($dataType->display_name_singular) }}   @can('edit', $dataTypeContent)   {{ __('voyager::generic.edit') }} @endcan @can('delete', $dataTypeContent) @endcan   {{ __('voyager::generic.return_to_list') }}

@include('voyager::multilingual.language-selector') @stop @section('content')

{{ $dataTypeContent->survey_title }}

{{ $dataTypeContent->survey_description }}
Publish Date:
{{ $dataTypeContent->publish_date }}
Expiry Date:
{{ $dataTypeContent->expiry_date }}
Visible To:
@if(!is_null($dataTypeContent->groups))
    @foreach($dataTypeContent->groups as $gkey => $group)
  • {{ $group->group_name }}
  • @endforeach
@else Not visible to any group @endif

Submitted Entries: {{ $dataTypeContent->submissions->count() }}


@if(!is_null($dataTypeContent->questions)) @foreach($dataTypeContent->questions as $qkey => $question)
{{ $question->question_text }}
@if($question->question_type !== 'text')
@foreach($question->answers as $akey => $answer)
{{ $answer->answer_text }} @if($dataTypeContent->submissions->count() > 0) ({{ number_format(($answer->chosen->count()/$dataTypeContent->submissions->count()) * 100,2) }}%) @endif
@endforeach
@else @endif
@endforeach @else No questions to be displayed @endif
{{-- Single delete modal --}} @stop @section('javascript') @if ($isModelTranslatable) @endif @stop