{{ csrf_field() }}
@if ($errors->has('title')) {{ $errors->first('title') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@if ($errors->has('database')) {{ $errors->first('database') }} @endif
@include ('category.list', ['categories'=>$categories, 'category'=>$category])
@for ($n_question=1; $n_question<=50; $n_question++)
@if ($errors->has('question'.$n_question)) {{ $errors->first('question'.$n_question) }} @endif
@if ($errors->has('solution'.$n_question)) {{ $errors->first('solution'.$n_question) }} @endif
@if ($errors->has('hint'.$n_question)) {{ $errors->first('hint'.$n_question) }} @endif
@endfor