@extends($layout) @section('pageTitle',$pageTitle) @section('innerTitle',$pageTitle) @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('student.dashboard')=>__lang('dashboard'), route('student.student.surveys')=>__lang('surveys'), '#'=>__lang('take-survey') ]]) @endsection @section('content')
@csrf

{{ __lang('Instructions') }}

{!! $survey->description !!}

@php $count = 0; @endphp @php foreach($survey->surveyQuestions()->orderBy('sort_order')->get() as $question): @endphp @php $count++; @endphp

{{ $count }}/{{ $totalQuestions }}

{!! $question->question !!}

@php foreach($question->surveyOptions as $option): @endphp

@php endforeach; @endphp

@php if($count > 1): @endphp @php endif; @endphp @php if($count < $totalQuestions): @endphp @php else: @endphp {{ __lang('finish') }} @php endif; @endphp
@php endforeach; @endphp
@endsection @section('footer') @endsection