<div class="m-3">

    <div class="row mb-3">
        <div class="col-6">
            <h2>{{$title}}</h2>
        </div>
    </div>

    <div class="card card-primary">

        <form>

            <div class="card-header">
                <h3 class="card-title"><b>Seleziona un intervallo di date per esportare il tracciato ISTAT relativo ai
                        sinistri del periodo.</b></h3>
            </div>

            <div class="card-body">
                <div class="form-group">
                    <div class="row">
                        <div class="col-md-6">
                            <label for="name">Dal</label>
                            <input class="form-control @error('from') is-invalid @enderror" type="date" id="from"
                                placeholder="Dal" wire:model="from">
                            @error('from')
                                <div class="invalid-feedback">{{ $message }}</div>
                            @enderror
                        </div>
                        <div class="col-md-6">
                            <label for="name">Al</label>
                            <input class="form-control @error('to') is-invalid @enderror" type="date" id="to"
                                placeholder="Dal" wire:model="to">
                            @error('to')
                                <div class="invalid-feedback">{{ $message }}</div>
                            @enderror
                        </div>
                    </div>
                </div>
            </div>

            <div class="card-footer">
                <button type="submit" class="btn btn-primary" wire:click.prevent="export()">Esporta</button>
                <button type="submit" class="btn btn-default" wire:click.prevent="cancel()">Annulla</button>
            </div>
        </form>
    </div>

</div>
