<div class="form-group<?php echo e($errors->has('answer') ? ' has-error' : ''); ?>">
	<?php echo Form::label('answer', 'Respuesta'); ?>

	<?php echo Form::text('answer', null, ['class' => 'form-control']); ?>

	<?php if($errors->has('answer')): ?>
		<span class="help-block">
			<strong><?php echo e($errors->first('answer')); ?></strong>
		</span>
	<?php endif; ?>
</div>

<div class="pull-right">
	<?php echo Form::hidden('question_id', isset($answer) ? $answer->question_id : $questionId ); ?>

	<?php echo Form::submit(trans('general.save'), ['class' => 'btn btn-success btn-flat']); ?>

	<a href="<?php echo e(asset('/questions')); ?>" type="button" class="btn btn-default btn-flat"><?php echo e(trans('general.cancel')); ?></a>
</div>
