@section('content')

{{ $question->question }}

@include('partials.breadcrumbs')
{{ $question->user->username }} asked {{ Date::ago($question->created_at) }} ago

{{ $question->question }}

{{ $question->description }}

ANSWERS ({{ $answers->count() }})

@if($answers->count() > 0) @foreach($answers as $answer)
{{ $answer->user->username }} answered {{ Date::ago($answer->created_at) }} ago

{{ $answer->answer }}

@endforeach @else No answer yet. Answer it now. @endif

ANSWER TO THE QUESTION

{{ Form::open($answer_action) }} {{ Form::hidden('question_id', $question->question_id) }}
{{ Form::textarea('answer', null, array('class' => 'form-control', 'id' => 'input-answer', 'placeholder' => 'Your answer', 'required' => 'true')) }}
{{ Form::close() }}
@endsection @section('scripts') {{ HTML::script('/js/plugins/chosen.jquery.min.js') }} {{ HTML::script('/js/questions.js') }} @endsection