<div class="tab-pane fade mt-3" id="tab4" role="tabpanel" aria-labelledby="tab4-tab" wire:ignore.self>
    <div class="row">
        <div class="col">
            <div class="card card-primary">
                <div class="card-header">
                    <h3 class="card-title">Campo del sinistro</h3>
                </div>
                <div class="card-body">

                    <div class="row">
                        <div class="col-sm-3">
                            <div class="form-group">
                                <label>Ora intervento</label>
                                <select class="form-control" wire:model="sinistro_ora">
                                    <option value="">-- Seleziona ora --</option>
                                    @for ($hour = 0; $hour <= 23; $hour++)
                                        <option value="{{ str_pad($hour, 2, '0', STR_PAD_LEFT) }}">
                                            {{ str_pad($hour, 2, '0', STR_PAD_LEFT) }}
                                    @endfor
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <label>Minuti intervento</label>
                                <select class="form-control" wire:model="sinistro_minuti">
                                    <option value="">-- Seleziona minuti --</option>
                                    @for ($minute = 0; $minute <= 59; $minute++)
                                        <option value="{{ str_pad($minute, 2, '0', STR_PAD_LEFT) }}">
                                            {{ str_pad($minute, 2, '0', STR_PAD_LEFT) }}
                                    @endfor
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Localizzazione dell'incidente</label>
                                <select class="form-control" wire:model="localizzazione_incidente" style="width:100%">
                                    <option value="">
                                    <option value="1">NELL'ABITATO
                                    <option value="2">FUORI DELL'ABITATO
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Altro</label>
                                <input class="form-control" type="text" wire:model="localizzazione_incidente_altro">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Nomenclatura strada</label>
                                <select class="form-control" wire:model="nomenclatura_strada" style="width:100%">
                                    <option value="">
                                        @foreach ($nomenclature as $t)
                                            <option value="{{ $t->id }}">{{ $t->name }}
                                        @endforeach
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <label>Num</label>
                                <input class="form-control" type="text" wire:model="nomenclatura_strada_numero">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <label>Altro</label>
                                <input class="form-control" type="text" wire:model="nomenclatura_strada_altro">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Condizioni atmosferiche</label>
                                <select class="form-control" wire:model="condizioni_atmosferiche" style="width:100%">
                                    <option value="">
                                        @foreach ($condizioni_atmosferiche_array as $t)
                                            <option value="{{ $t->id }}">{{ $t->name }}
                                        @endforeach
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Altro</label>
                                <input class="form-control" type="text" wire:model="condizioni_atmosferiche_altro">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Pavimentazione strada</label>
                                <select class="form-control" wire:model="pavimentazione" style="width:100%">
                                    <option value="">
                                        @foreach ($pavimentazioni as $t)
                                            <option value="{{ $t->id }}">{{ $t->name }}
                                        @endforeach
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Altro</label>
                                <input class="form-control" type="text" wire:model="pavimentazione_altro">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Condizione strada</label>
                                <select class="form-control" wire:model="condizione_strada" style="width:100%">
                                    <option value="">
                                        @foreach ($condizioni_strada as $t)
                                            <option value="{{ $t->id }}">{{ $t->name }}
                                        @endforeach
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Altro</label>
                                <input class="form-control" type="text" wire:model="condizione_strada_altro">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Fondo stradale</label>
                                <select class="form-control" wire:model="fondo_stradale" style="width:100%">
                                    <option value="">
                                        @foreach ($fondi_stradali as $t)
                                            <option value="{{ $t->id }}">{{ $t->name }}
                                        @endforeach
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Inserire specifica</label>
                                <input class="form-control" type="text" wire:model="fondo_stradale_specifica">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Condizioni luce</label>
                                <select class="form-control condizioni_luce" multiple="multiple"
                                    wire:model="condizioni_luce" style="width:100%">
                                    <option value="">
                                        @foreach ($condizioni_luce_array as $t)
                                            <option value="{{ $t->id }}">{{ $t->name }}
                                        @endforeach
                                </select>
                            </div>
                        </div>

                    </div>

                    <div class="row">
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Visibilità</label>
                                <select class="form-control" wire:model="visibilita" style="width:100%">
                                    <option value="">
                                    <option value="1">BUONA
                                    <option value="2">LIMITATA
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Inserire specifica</label>
                                <input class="form-control" type="text" wire:model="visibilita_specifica">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Particolarità strada</label>
                                <select class="form-control" wire:model="particolarita_strada" style="width:100%">
                                    <option value="">
                                        @foreach ($particolarita_strade as $t)
                                            <option value="{{ $t->id }}">{{ $t->name }}
                                        @endforeach
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Inserire specifica</label>
                                <input class="form-control" type="text" wire:model="particolarita_strada_specifica">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Traffico</label>
                                <select class="form-control" wire:model="traffico" style="width:100%">
                                    <option value="">
                                    <option value="2">Scarso
                                    <option value="1">Normale
                                    <option value="3">Intenso
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Tipo di strada</label>
                                <select class="form-control tipo_strada" multiple="multiple" wire:model="tipo_strada"
                                    style="width:100%">
                                    <option value="">
                                        @foreach ($tipi_strade as $t)
                                            <option value="{{ $t->id }}">{{ $t->name }}
                                        @endforeach
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>Altro</label>
                                <input class="form-control" type="text" wire:model="tipo_strada_altro">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
