@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 Vacinação</h4>
                    <p class="text-muted">Cadastrando Vacinação no Sistema</p>
                    <a class="btn btn-outline-primary btn-block d-grid gap-2" type="button"
                        href="{{ route('vacinacao.index') }}" role="button">Ver todas</a>
                </div>
                <div class="card">
                    <div class="card-body">
                        <form action="{{ route('vacinacao.store') }}" method="POST" class="form-horizontal"
                            enctype="multipart/form-data">
                            @csrf
                            <div class="box box-info">
                                <div class="row">
                                    <div class="form-group col-md-3">
                                        <label class="col-form-label">Data<span>*</span></label>
                                        <input type="date" name="data" value="{{ old('data') }}"
                                            class="form-control @error('data') is-invalid @enderror">
                                    </div>

                                    <div class="form-group col-md-2">
                                        <label class="col-form-label">Hora<span>*</span></label>
                                        <input type="time" name="hora" value="{{ old('hora') }}"
                                            class="form-control @error('hora') is-invalid @enderror">
                                    </div>


                                    <div class="form-group col-md-2">
                                        <label class="col-form-label">Enviadas<span>*</span></label>
                                        <input type="text" name="enviadas" value="{{ old('enviadas') }}"
                                            class="form-control @error('enviadas') is-invalid @enderror">
                                    </div>

                                    <div class="form-group col-md-2">
                                        <label class="col-form-label">Vacinadas<span>*</span></label>
                                        <input type="text" name="vacinadas" value="{{ old('vacinadas') }}"
                                            class="form-control @error('vacinadas') is-invalid @enderror">
                                    </div>

                                    <div class="form-group col-md-3">
                                        <label class="col-form-label">Disponíveis<span>*</span></label>
                                        <input type="text" name="disponiveis" value="{{ old('disponiveis') }}"
                                            class="form-control @error('disponiveis') is-invalid @enderror">
                                    </div>

                                    <div class="form-group col-md-12">
                                        <div class="form-group">
                                            <label class="col-form-label">Arquivo</label>
                                            <br>
                                            <input type="file" name="arquivo_vacina" value="{{ old('arquivo_vacina') }}"
                                                class="form-control @error('arquivo_vacina') is-invalid @enderror">
                                        </div>
                                    </div>
                                </div>
                                <br>
                                <div class="form-group">
                                    <button type="submit" class="btn btn-outline-success btn-sm w-100"
                                        name="form1">Gravar</button>
                                </div>
                        </form>
                    </div>
                </div>
            </div>

        </div>
    </div>
@endsection
