@extends('author.dashboard') @section('title', 'Questions') @section('stylesheets') @endsection @section('content')

Dashboard OPALESCE Version 1.0

{!! Breadcrumbs::render('authviewmicroquestions', $microunit) !!}

Data Table With All Questions of Microunit: {{$microunit->muid}}

Add Question
@foreach ($microunit->questions as $question) @endforeach
ID Question Created at Actions
{{$question->id}}
@if ($question->answers->count())

Answers

@foreach ($question->answers as $answer) @endforeach
ID Answer Correct Actions
{{$answer->id}} {{$answer->answer}} {{$answer->correct == 1 ? "Yes" : "No"}} Edit @include('author.questions.modals.editansw') @include('author.questions.modals.deleteansw')
@else

Alert!

No Answers.
@endif
{{ date('j M. Y', strtotime($question->created_at)) }} Edit @include('author.questions.modals.edit') Delete @include('author.questions.modals.delete') Add Answer @include('author.questions.modals.addansw')
ID Question Created at Actions
@endsection @section('javascripts') @endsection