<?php
?>

<div class="col-lg-12">
    <h3 class="page-title" style="margin: 0 0 20px;">Integrantes
        <small></small>
    </h3>
    <div class="page-bar">
        <ul class="page-breadcrumb">
            <li><i class="fa fa-dashboard"></i><a href="user/dashboard">Inicio</a><i
                        class="fa fa-angle-right"></i></li>
            <li><span>Colaboradores</span></li>
        </ul>
    </div>
    <a href="#">
        <button class="btn btn-green"><i class="fa fa-plus" style="margin-right:8px;"></i>Nuevo</button>
    </a>
    <div style="margin:15px;"></div>
    <div class="portlet portlet-default">
        <div class="portlet-heading">
            <div class="portlet-title"><h4>Integrantes</h4></div>
            <div class="clearfix"></div>
        </div>
        <div class="portlet-body">
            <div class="table-responsive">
                <div id="example-table_wrapper" class="dataTables_wrapper form-inline" role="grid">
                    <table id="example-table" class="table table-striped table-bordered table-hover table-green">
                        <thead>
                            <tr>
                                <th>Nombre Completo</th>
                                <th>Tipo Colaborador</th>
                                <th>Activo</th>
                                <th>Opciones</th>
                            </tr>
                        </thead>
                        <tbody>
	                    <?php foreach ($listaIntegrantes as $value) { ?>
                            <tr>
                                <td><?= $value->nombre_completo; ?></td>
                                <td><?= $value->tipo; ?></td>
                                <td class="text-center">

                                        <span  class="checkslide cambiarActivo"
                                               url=""
                                               name="">
                                            <input type="checkbox" <?php if ($value->activo==1){echo 'checked';} ?>>
                                            <label data-on="SI" data-off="NO"></label>
                                        </span>

                                </td>
                                <td class="text-center">
                                    <a href="#" style="margin-right:15px;"><span><i class="fa fa-pencil"></i></span></a>
                                    <a href="#" style="margin-right:15px;"><span><i class="fa fa-eye"></i></span></a>
                                    <a  href="#"><span><i class="fa fa-trash"></i></span></a>
                                </td>
                            </tr>
	                    <?php } ?>
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- /.table-responsive -->
        </div>
        <!-- /.portlet-body -->
    </div>
    <!-- /.portlet -->
</div>