<div class="card card-primary">
    <div class="card-header">
        <h3 class="card-title">Ripristino post incidente</h3>
    </div>
    <div class="card-body">
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label>Ditta intervenuta</label>
                    <input class="form-control" type="text" wire:model="ditta_intervenuta">
                </div>
            </div>

            <div class="col-sm-6">
                <div class="form-group">
                    <label>Ora di chiamata</label>
                    <select class="form-control" wire:model="ripristino_ora_chiamata">
                        @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-6">
                <div class="form-group">
                    <label>Minuti</label>
                    <select class="form-control" wire:model="ripristino_minuti_chiamata">
                        @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 class="col-sm-6">
                <div class="form-group">
                    <label>Ora di arrivo</label>
                    <select class="form-control" wire:model="ripristino_ora_arrivo">
                        @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-6">
                <div class="form-group">
                    <label>Minuti di arrivo</label>
                    <select class="form-control" wire:model="ripristino_minuti_arrivo">
                        @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 class="col-sm-12">
                <div class="form-group">
                    <label>Materiale recuperato</label>
                    <select class="form-control materiale_recuperato" multiple="multiple"
                        wire:model="materiale_recuperato" style="width: 100%;">
                        <option value="">
                            @foreach ($materiali as $t)
                                <option value="{{ $t->id }}">{{ $t->name }}
                            @endforeach
                    </select>
                </div>
            </div>
            <div class="col-sm-12">
                <div class="form-group">
                    <label>Descrizione danni</label>
                    <textarea class="form-control" rows="5"
                        wire:model="danni_cose_diverse_da_veicoli"></textarea>
                </div>
            </div>
        </div>
    </div>
</div>
