@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">Editando Boletim do Covid-19</h4>
                    <p class="text-muted">Editando Boletim do Covid-19 no Sistema</p>
                    <a class="btn btn-outline-primary btn-block w-100" type="button" href="{{ route('covid.index') }}"
                        role="button">Ver todos</a>
                </div>
                <div class="card">
                    <div class="card-body">
                        <form action="{{ route('covid.update', $covid->id) }}" method="POST" class="form-horizontal">
                            @method('PUT')
                            @csrf
                            <div class="box box-info">
                                <div class="row">
                                    <div class="form-group col-md-2">
                                        <label class="col-form-label">Data<span>*</span></label>
                                        <input type="date" name="data" value="{{ $covid->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="{{ $covid->hora }}"
                                            class="form-control @error('hora') is-invalid @enderror">
                                    </div>

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

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



                                    <div class="form-group col-md-2">
                                        <label class="col-form-label">Casos Ativos<span>*</span></label>
                                        <input type="text" name="monitorados" value="{{ $covid->monitorados }}"
                                            class="form-control">
                                    </div>


                                    <div class="form-group col-md-1">
                                        <label class="col-form-label">Recuperados<span>*</span></label>
                                        <input type="text" name="recuperados" value="{{ $covid->recuperados }}"
                                            class="form-control @error('recuperados') is-invalid @enderror">
                                    </div>


                                    <div class="form-group col-md-1">
                                        <label class="col-form-label">Óbitos<span>*</span></label>
                                        <input type="text" name="obitos" value="{{ $covid->obitos }}"
                                            class="form-control @error('obitos') is-invalid @enderror">
                                    </div>
                                </div>
                                <br>
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <input type="submit" value="Salvar" class="btn btn-sm btn-outline-success w-100">
                                    </div>
                                </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
