@extends('admin.layouts.layout')
@section('content')
    <div class="row match-height">
        <div class="col-md-12 col-12">
            <div class="card">
                <div class="card-header">
                    <h4 class="card-title text-primary">Cadastrando FAQ</h4>
                    <p class="text-muted">Cadastrando FAQ no Sistema</p>
                    <a class="btn btn-outline-primary btn-block d-grid gap-2" type="button" href="{{ route('faq.index') }}"
                        role="button">Ver todas</a>
                </div>
                <div class="card">
                    <div class="card-body">
                        <form action="{{ route('faq.store') }}" method="POST" class="form-horizontal">
                            @csrf
                            <div class="box box-info">

                                <div class="row">
                                    <div class="form-group col-md-10">
                                        <label class="col-form-label">Título<span>*</span></label>
                                        <input type="text" name="titulo" value="{{ old('titulo') }}"
                                            class="form-control @error('titulo') is-invalid @enderror">
                                    </div>
                                    <div class="form-group col-md-2">
                                        <label class="col-form-label">Covid-19</label>
                                        <select name="covid" class="form-control @error('covid') is-invalid @enderror"
                                            value="{{ old('covid') }}">
                                            <option value="">Selecione</option>
                                            <option value="N">Não</option>
                                            <option value="S">Sim</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-form-label">Descrição </label>
                                    <textarea type="text" class="form-control @error('descricao') is-invalid @enderror" rows="5" name="descricao"
                                        id="editor" value="{{ old('descricao') }}"></textarea>
                                </div>
                                <br>
                                <div class="form-group">
                                    <button type="submit" class="btn btn-outline-success w-100"
                                        name="form1">Gravar</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
