@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 Categoria de Fotos</h4>
                    <p class="text-muted">Cadastrando Categoria de Fotos no Sistema</p>
                    <a class="btn btn-outline-primary btn-block d-grid gap-2" type="button"
                        href="{{ route('fotoscategoria.index') }}" role="button">Ver todas</a>
                </div>
                <div class="card">
                    <div class="card-body">
                        <form action="{{ route('fotoscategoria.store') }}" method="POST" class="form-horizontal">
                            @csrf
                            <div class="box box-info">
                                <div class="form-group">
                                    <label class="col-form-label">Nome da categoria <span>*</span></label>
                                    <input type="text" name="categoria" value="{{ old('categoria') }}"
                                        class="form-control @error('categoria') is-invalid @enderror">
                                </div>
                            </div>
                            <br>
                            <div class="form-group">
                                <button type="submit" class="btn btn-outline-success btn-sm w-100"
                                    name="form1">Gravar</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
