<?php $__env->startSection('content'); ?>
<!-- Page-Title -->
<div class="row">
    <div class="col-sm-12">
        <ol class="breadcrumb">
            <li><a href="<?php echo e(url('')); ?>"><span class="m-l-5"><i class="fa fa-home"></i></span>&nbsp;Início</a></li>
            <li class="active">Usuários</li>
        </ol>
    </div>
    <div class="col-sm-12">
        <div class="btn-group pull-right m-t-15">
            <a href="<?php echo e(url('/usuario/novo')); ?>" class="btn btn-primary waves-effect waves-light">Novo<span class="m-l-5"><i class="fa fa-plus"></i></span></a>
        </div>
        <h4 class="page-title">Usuários</h4>
    </div>
</div>

<div class="row">
    <div class="col-sm-12">
        <?php if(session('mensagem')): ?>
        <div class="alert alert-danger">
            <strong>Erro!</strong>
            <?php echo e(session('mensagem')); ?>

            </div>
        <?php endif; ?>
        <div class="card-box table-responsive">
            <table id="datatable-normal" class="table table-striped table-bordered">
                <thead>
                    <tr>
                        <th>Nome</th>
                        <th>E-mail</th>
                        <th>Status</th>
                        <th>Ações</th>
                    </tr>
                </thead>

                <tbody>
                    <?php $__currentLoopData = $usuarios; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $o): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
                    <tr>
                        <td><?php echo e(isset($o->name) ? $o->name : ''); ?></td>
                        <td><?php echo e(isset($o->email) ? $o->email : ''); ?></td>
                        <td><?php if($o->status): ?> Ativo <?php else: ?> Inativo <?php endif; ?></td>
                        <td>
                            <a href="<?php echo e(url('/usuario/'.$o->id.'/editar')); ?>" class="on-default edit-row"><i class="fa fa-pencil"></i></a>
                            <a href="javascript:void(0)" url="<?php echo e(url('/usuario/'.$o->id.'/excluir')); ?>" class="on-default remove-row btn-remove"><i class="fa fa-trash-o"></i></a>
                        </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>
                </tbody>
            </table>
        </div>
    </div><!-- end col -->
</div>
<!-- end row -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>