@extends('survey::layouts.master') {{-- inject --}} @inject('helper', 'Modules\Survey\Http\Helpers\ViewHelper') {{-- Style --}} @push('links') @endpush {{-- 內容 --}} @section('content')
{{csrf_field()}}
@include('custom::component.reply-btn', ['url' => route('admin.survey.answer.index', $survey->id)])
@if($survey->questions()->count()>0) @foreach ($survey->questions()->orderBy('sort')->get() as $question) @endforeach @else @endif
題號 題目 答案
第 {{$question->pivot->sort}} 題 {{$question->title}} {!! $helper->renderQuestion($question->id, $question->pivot->required, isset($answer[$question->id])?$answer[$question->id]:'') !!}
查無資料
@endsection {{-- Script --}} @push('scripts') @endpush