@extends('survey::layouts.master') @inject('helper', 'Modules\Survey\Http\Helpers\ViewHelper') {{-- Style --}} @push('links') @endpush @section('content') @include('custom::component.reply-btn', ['url' => route('admin.survey.question.index')])
{{csrf_field()}} {{-- 標題 --}}
{{-- 類型 --}}
@foreach(['single', 'multiple', '5point', 'answer'] as $type)
type)? 'checked':''}} {{($count)? 'disabled':''}} />
@endforeach
{{-- 選項 --}}
@foreach($question->options as $key => $option)
@endforeach
{{-- 其他 --}} {{-- 沒有引用才可以儲存 --}} @if(!$count)
@endif
@if($count) 題目有被問卷引用,因此不能修改 @endif
{{-- 引用列表 --}} @if($question->id)
引用的問卷
@if(!$count) @endif @foreach ($question->surveies as $survey) @endforeach
問卷 狀態 起迄日 回答數
尚無問卷
{{$survey->title}} {{config('survey.survey_status')[$survey->status]}}
起:{{$helper->formatDate($survey->started_at)}}
訖:{{$helper->formatDate($survey->finished_at)}}
{{$survey->replies->count()}} 詳細
@endif
@endsection @push('scripts') @endpush