<form action="#" autocomplete="off" @submit.prevent="agregaragente" id="form_modal_agregarag">
    <div class="modal fade" id="modal_agregarag" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">Agregar nuevo agente</h5>
                    <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 form-group-default">
                        <div class="form-group">
                            <label for="agente">Agentes:</label>
                            <select id="agenteid" class="form-control">
                                <option value="">Seleccione una opcion</option>
                                <option v-for="row in agentes_todos" :value="row.einfo_id">{{row.einfo_nombres}} {{row.einfo_apellidos}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group form-group-default">
                        <div class="form-group">
                            <label for="comisiones">Comisiones:</label>
                            <select id="comisionesa" class="form-control">
                                <option value="">Seleccione una opcion</option>
                                <option v-for="comision in dataEditar.comisiones" :value="comision.com_id">{{comision.com_descripcion}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group form-group-default">
                        <div class="form-group">
                            <label for="pagardivisa_comision">Divisas:</label>
                            <select class="form-control" v-model="divisa_pagar_comision" id="pagardivisa_comision">
                                <option value="">Seleccione una opción</option>
                                <?php foreach ($divisas as $row) : ?>
                                    <option value="<?= $row['div_id'] ?>"><?= $row['div_nombre'] ?></option>
                                <?php endforeach; ?>
                            </select>
                        </div>
                    </div>
                    <div class="form-group form-group-default">
                        <div class="form-group">
                            <label for="montoca">Monto a pagar</label>
                            <input id="montoca" type="text" v-money="money" class="form-control input-border-bottom">
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary  btn-sm" data-dismiss="modal">Cerrar</button>
                    <button type="submit" class="btn btn-primary  btn-sm">Guardar</button>
                </div>
            </div>
        </div>
    </div>
</form>
