<div class="card" id="appFormaPago" v-cloak>
    <div class="card-header">
        <div class="card-head-row">
            <div class="card-title">Listado de Métodos de Pago</div>
            <div class="card-tools">
                <a href="#" class="btn btn-light" style="box-shadow: 2px 6px 15px 0px #ddd;" @click.prevent="modalMetodoDePago">
                    <span class="btn-label">
                        <i class="fa fa-plus"></i>
                    </span>
                    Agregar
                </a>
            </div>
        </div>
    </div>
    <div class="card-body">
        <div class="table-responsive">
            <table class="table table-striped table-hover table-sm" id="tabla_metodo_pago">
                <thead>
                    <tr>
                        <th>Código</th>
                        <th>Nombre</th>
                        <th>Descripción</th>
                        <th class="text-center">Estatus</th>
                        <th class="text-center">Acciones</th>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="row in formaPago">
                        <td>{{ row.mp_codigo}}</td>
                        <td>{{ row.mp_nombre }}</td>
                        <td>{{ row.mp_descripcion }}</td>
                        <td class="text-center">
                            <a href="" title="Modificar estatus" @click.prevent="modificarEstatus(row.mp_id, 'status' + row.mp_id)">
                                <i :class="row.mp_estatus == 1 ? 'fa fa-check text-success' : 'fa fa-times text-danger'" :id="'status'+row.mp_id"></i>
                            </a>
                        </td>
                        <td class="text-center">
                            <button type="button" title="Editar" class="btn btn-link btn-primary" @click="ver(row.mp_id, row.mp_codigo, row.mp_nombre, row.mp_descripcion)">
                                <i class="fa fa-edit"></i>
                            </button>
                            <button type="button" title="Eliminar" class="btn btn-link text-dark" @click="eliminar(row.mp_id, row.mp_nombre)">
                                <i class="fa fa-trash"></i>
                            </button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <?php include 'modaleditarguardar.php'; ?>
</div>
<script src="<?= ruta_base() ?>public/assetsvuejs/forma_pago/forma_pago.js"></script>
