@extends('layouts.main') @push('styles') @endpush @section('content')

{{ __('frequently_asked_questions.faq') }}

@include('frequently_asked_questions.menu') @include('flash::message')

{{ __('frequently_asked_questions.export_csv') }}

{{ Form::open(['route' => 'frequently_asked_questions.bulk_update','data-toggle'=>'validator']) }}
{{ Form::submit(__('frequently_asked_questions.save'), ['class'=>'btn btn-success']) }}

@php $count = 1; @endphp @if(count($frequently_asked_questions) > 0) @foreach($frequently_asked_questions as $question) {{ Form::hidden('id[]', $question->id) }} @php ++$count; @endphp @endforeach @endif
# {{ __('frequently_asked_questions.question') }} {{ __('frequently_asked_questions.module_category') }} {{ __('frequently_asked_questions.answered') }}
# {{ __('frequently_asked_questions.question') }} {{ __('frequently_asked_questions.module_category') }} {{ __('frequently_asked_questions.answered') }}
{{ $count }}. {{ Form::text('question[]', $question->question,['class'=>'form-control compulsory', 'required']) }} {{ Form::select('module_id[]', $modules, $question->module_id, ['class'=>'form-control select'])}} {{ Form::textarea('answers[]', $question->answer,['class'=>'form-control', 'rows'=>'5']) }}

{{ Form::submit(__('frequently_asked_questions.save'), ['class'=>'btn btn-success']) }}
{{ Form::close() }}
@endsection @push('scripts') @endpush