@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 Transparência Municipal</h4>
                <p class="text-muted">Cadastrando Links de Transparência no Sistema</p>
                <a class="btn btn-outline-primary w-100" type="button" href="{{ route('transparencias.index') }}"
                    role="button">Ver todas</a>
            </div>
            <div class="card">
                <div class="card-body">
                    <form action="{{ route('transparencias.store') }}" method="POST" class="form-horizontal">
                        @csrf
                        <div class="box box-info">

                            <div class="form-group">
                                <label class="col-form-label">Título</label>
                                <input type="text" name="titulo" value="{{ old('titulo') }}"
                                    class="form-control @error('titulo') is-invalid @enderror">
                            </div>

                            <div class="form-group">
                                <label class="col-form-label">Descrição</label>
                                <input type="text" name="descricao" value="{{ old('descricao') }}"
                                    class="form-control @error('descricao') is-invalid @enderror">
                            </div>

                            <div class="form-group">
                                <label class="col-form-label">Documento</label>
                                <input type="file" name="documento" value="{{ old('documento') }}" class="form-control">
                            </div>

                            <div class="form-group">
                                <label class="col-form-label">Url</label>
                                <input type="text" name="url" value="{{ old('url') }}"
                                    class="form-control @error('url') is-invalid @enderror">
                            </div>

                            <div class="row">
                                <div class="form-group col-md-4">
                                    <label class="control-label">Ícone</label>
                                    <input type="text" name="icone"
                                        class="form-control @error('icone') is-invalid @enderror">
                                </div>
                                <div class="form-group col-md-4">
                                    <label class="control-label">Meta</label>
                                    <input type="text" name="meta"
                                        class="form-control @error('meta') is-invalid @enderror">
                                </div>
                                <div class="form-group col-md-4">
                                    <label class="col-form-label">Covid-19?</label>
                                    <select class="form-control" name="covid" value="{{ old('covid') }}"
                                        class="form-control @error('covid') is-invalid @enderror">
                                        <option value="N">N</option>
                                        <option value="S">S</option>
                                    </select>
                                </div>
                            </div>
                            <br>
                            <div class="form-group">
                                <input type="submit" value="Gravar" class="btn btn-sm btn-outline-success w-100">
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
