<div class="card card-primary">
    <div class="card-header">
        <h3 class="card-title">Ausilio altri enti</h3>
    </div>
    <div class="card-body">
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label>Ausilio altri enti</label>
                    <select class="form-control select2 ausilio_altri_enti" multiple="multiple"
                        wire:model="ausilio_altri_enti" style="width: 100%;">
                        <option value="">
                            @foreach ($altri_enti as $t)
                                <option value="{{ $t->id }}">{{ $t->name }}
                            @endforeach
                    </select>
                </div>
            </div>
            <div class="col-sm-12">
                <div class="form-group">
                    <label>Motivo ausilio</label>
                    <input class="form-control" type="text" wire:model="ausilio_altri_enti_motivo">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label>Ora di intervento</label>
                    <select class="form-control" wire:model="ausilio_altri_enti_ora_intervento">
                        @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="ausilio_altri_enti_minuti_intervento">
                        @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>
</div>
