@extends('layouts.main')
@section('title')
{{$title}}
@stop
@section('description')
{{$desc}}
@stop
@section('content')
@if(Session::has('notification'))
{{ Session::get('notification')['text'] }}
@endif
{{ Form::open(['route' => ['post_question']]) }}
{{ Form::textarea('question',Input::old('question'),['class'=>($errors->first('question')) ? 'error form-control' : 'form-control','placeholder'=>'ASK YOUR OWN QUESTION']) }}
{{ Form::select('theme',$themes,Input::old('themes'),['class'=>($errors->first('theme')) ? 'error' : '']) }}
{{ Form::close() }}
@foreach(QuestionTheme::all() as $qt)
@if(count($qt->answeredQuestions))
@foreach($qt->answeredQuestions as $q)
@endforeach
@endif
@endforeach