@extends('admin.layouts.layout')

@section('title', 'Adicionando novo Logradouro')
@section('content')
    <div class="container-fluid">
        <div class="card shadow mb-4">
            <div class="card-header py-3">
                <h5 class="m-0 font-weight-bold text-primary">Editando Espécie</h5>
                <small>Editando Espécie do Sistema</small>
                <a class="btn btn-outline-primary btn-block d-grid gap-2" type="button"
                    href="{{ route('especies.index') }}" role="button">Ver todos</a>
            </div>
            <div class="card">
                <div class="card-body">

                    <!-- Form -->
                    <form method="POST" action="{{ route('especies.update', $especies->id) }}">
                        @method('PUT')
                        @csrf
                        <div class="row">
                            <div class="form-group col-md-3">
                                <label class="form-label">Especie</label>
                                <input type="text" class="form-control @error('especie') is-invalid @enderror"
                                    name="especie" value="{{ $especie }}" placeholder="Logradouro">
                            </div>
                        </div>

                        <div class="d-grid gap-2">
                            <br>
                            <button type="submit" class="btn btn-outline-success btn-block">Gravar</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

@endsection
