@extends('admin.dashboard') @section('title', 'Edit Answer') @section('stylesheets') @endsection @section('content')

Dashboard OPALESCE Version 1.0

{!! Breadcrumbs::render('editanswer', $answer) !!}

Edit Question

@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {!! Form::model($answer, ['route'=> ['admin.answer.update', $answer->id], 'method'=>'PUT', 'class'=> 'form-horizontal']) !!}
{{ Form::label('question_id', 'Question', ['class'=>'col-sm-2 control-label', 'for'=>'validate-element']) }}
{{ Form::select('question_id', $questions, null, ['class' => 'form-control', 'placeholder' => 'Question', 'required' =>'', 'id'=>'validate-select' ])}}
{{ Form::label('answer', 'Answer', ['class'=>'col-sm-2 control-label', 'for'=>'validate-title']) }}
{{ Form::text('answer', null, array( 'class' => 'form-control', 'name'=> 'answer', 'id' => 'validate-answer', 'placeholder' => 'Answer...', 'required'=> '', 'maxlength'=>'255')) }}
{{ Form::label('correct', 'Correct', ['class'=>'col-sm-2 control-label']) }}
{{ Form::checkbox('correct', 1, true) }}
{!! Form::close() !!}
@endsection @section('javascripts') @endsection