<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="true" id="modal-trabajoAdic">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header mh">
                <h4 class="modal-title">Asignar trabajo Adicional</h4>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                    <div class="form-group">
                        <label for="e_categoria">Categorias</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">
                                    <i class="flaticon-mark-1"></i>
                                </span>
                            </div>
                            <select name="e_categoria" id="e_categoria" v-model="categoria_adicional" class="form-control" @change="selectAdicionalEmpleado($event)">
                                <option value="" disabled selected>Seleccionar categoria</option>
                                <?php foreach ($categorias as $row) : ?>
                                    <option value="<?= $row['id'] ?>">
                                        <?= $row['categoria'] ?>
                                    </option>
                                <?php endforeach; ?>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="select_empleado">Empleados</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">
                                    <i class="fas fa-user-tie"></i>
                                </span>
                            </div>
                            <v-select id="select_empleado" v-model="empleado_tr" :options="empleados_adicional" :reduce="row => row.id" label="empleado" style="width: 90%;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="select_empleado">Servicios</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">
                                    <i class="fas fa-wrench"></i>
                                </span>
                            </div>
                            <v-select id="select_servicio" v-model="servicio_adicional" :options="servicios_adicionales" :reduce="row => row.proid" label="servicio" style="width: 90%;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="select_empleado">Cantidad</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">
                                    <i class="fas fa-info"></i>
                                </span>
                            </div>
                            <input id="cantidad_tr" v-model="cantidad_tr" type="number" />
                        </div>
                    </div>
                <div class="row">
                    <div class="col-12">
                        <div class=" alert alert-warning" role="alert" v-for="row in errorForm">
                            {{ row }}
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary  btn-sm" data-dismiss="modal">Cerrar</button>
                <button v-if="cargando" class="btn btn-sm btn-primary" disabled>
                    <i class="loader loader-info"></i>
                </button>
                <button v-else type="button" class="btn btn-primary btn-sm" @click="asignarServicioEmpleadoAdicionales()">Registrar</button>
            </div>
        </div>
    </div>
</div>