<div class="card" id="appSeries" v-cloak>
    <div class="card-header">
        <div class="card-head-row">
            <div class="card-title">Listado de Series</div>
            <div class="card-tools">
                <a href="#" class="btn btn-light" style="box-shadow: 2px 6px 15px 0px #ddd;" @click.prevent="modalGuardar">
                    <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-sm table-hover text-center">
                <thead>
                    <tr>
                        <th>Código</th>
                        <th>Nombre</th>
                        <th>Máscara</th>
                        <th>Sucursal</th>
                        <th>Acciones</th>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="row in series">
                        <td>{{ row.ser_codigo}}</td>
                        <td>{{ row.ser_descripcion}}</td>
                        <td>{{ row.ser_impuesto}}</td>
                        <td>{{ row.su_nombre }}</td> 
                        <td>
                            <div class="form-button-action">
                                <button type="button" title="Editar" class="btn btn-link btn-primary" @click="ver(row.ser_id, row.ser_descripcion, row.ser_codigo, row.ser_impuesto, row.ser_sucursal)">
                                    <i class="fa fa-edit"></i>
                                </button>
                                <button type="button" title="Eliminar" class="btn btn-link text-dark" @click="eliminar(row.ser_id, row.ser_descripcion)">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <?php include 'modaleditarguardar.php'; ?>
</div>
<script src="<?php asset('assetsvuejs/series/series.js'); ?>"></script>
