<?php $__env->startSection('CSS'); ?>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('Contenido'); ?>
<div class="row">
	<div class="col-md-12">
		<h2><i class="fa fa-users"></i> Administración de usuarios </h2>
	</div><!--/col-md-12-->
</div><!--/row-->

<div class="row">
	<div class="col-md-12">
		<?php if(Session::has('message')): ?>
		<div class="alert alert-info"><?php echo Session::get('message'); ?></div>
		<?php endif; ?>
	</div>
</div>

<div class="row">
	<div class="col-md-12">
		<div class="block-web">
			<div class="header"> <h3 class="content-header"> Usuarios del sistema </h3> </div>
			<div class="porlets-content">
				<div class="table-responsive">
					<table class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								<th class="col-md-4"> Nombre de remitente </th>
								<th class="col-md-2"> Tipo </th>
								<th class="col-md-4"> Empresa </th>
								<th class="col-md-2"> Acciones </th>
							</tr>
						</thead>
						<tbody>
							<?php $__empty_2 = true; foreach($Usuarios as $Usuario): $__empty_2 = false; ?>
							<tr>
								<td> <?php echo $Usuario->username; ?> </td>
								<td> <?php echo $Usuario->tipo; ?> </td>
								<td> <?php echo $Usuario->empresa; ?> </td>
								<td>
									<a href="<?php echo URL::route('SysWebUsuariosModulosSistema', array($Usuario->id)); ?>" class="btn btn-success"> Modulos </a>
								</td>
							</tr>
							<?php endforeach; if ($__empty_2): ?>
							<tr class="danger"> <td colspan="4"> No existe ningún usuario agregado </td> </tr>
							<?php endif; ?>
						</tbody>
					</table>
					<?php echo $Usuarios->links();; ?>

				</div>
			</div>
			<div class="bottom">
				<?php echo HTML::linkRoute('SysWebUsuariosAgregar', 'Agregar', array(), array('class' => 'btn btn-primary')); ?>

			</div>
		</div>
	</div>
</div><!--/row end-->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('JS'); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('JSOr'); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('BaseSistemaWeb', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>