@include('common.modalHead',['text_mh_create'=>'Crear Solicitud','text_mh_update'=>'Ver Solicitud'])
            <div class="row">
                <div class="col-sm-12 col-md-6">
                    <div class="form-group">
                        <label>Tipo de permiso</label>
                        <select class="form-select form-control" wire:model.lazy="type_work_permit">
                            <option value="">Seleccione una opción</option>
                            @foreach ($type_work_permits as $item)
                                <option value="{{ $item->id }}">{{ $item->name }}</option>
                            @endforeach
                        </select>
                        @error('type_work_permit')
                            <span class="text-danger er">{{ $message }}</span>
                        @enderror
                    </div>
                </div>
                <div class="col-sm-12 col-md-6">
                </div>
                <div class="col-sm-12 col-md-6">
                    <div class="form-group">
                        <label>Fecha de salida</label>
                        <input type="date" class="form-control" wire:model.lazy="start_date">
                        @error('start_date')
                            <span class="text-danger er">{{ $message }}</span>
                        @enderror
                    </div>
                </div>
                <div class="col-sm-12 col-md-6">
                    <div class="form-group">
                        <label>Hora de salida</label>
                        <input type="time" class="form-control" wire:model.lazy="start_time">
                        @error('start_time')
                            <span class="text-danger er">{{ $message }}</span>
                        @enderror
                    </div>
                </div>
                <div class="col-sm-12 col-md-6">
                    <div class="form-group">
                        <label>Fecha de llegada</label>
                        <input type="date" class="form-control" wire:model.lazy="end_date">
                        @error('end_date')
                            <span class="text-danger er">{{ $message }}</span>
                        @enderror
                    </div>
                </div>
                <div class="col-sm-12 col-md-6">
                    <div class="form-group">
                        <label>Hora de llegada</label>
                        <input type="time" class="form-control" wire:model.lazy="end_time">
                        @error('end_time')
                            <span class="text-danger er">{{ $message }}</span>
                        @enderror
                    </div>
                </div>
                <div class="col-sm-12 col-md-12">
                    <div class="form-group">
                        <label>Observaciones</label>
                        <textarea class="form-control" wire:model.lazy="observations" rows="3"></textarea>
                        @error('observations')
                            <span class="text-danger er">{{ $message }}</span>
                        @enderror
                    </div>
                </div>

            </div><!-- row -->
@include('common.modalFooter',['text_store_button' => 'SOLICITAR PERMISO', 'text_update_button' => 'NONE', 'loading_methods' => 'Store, Update'])
