<?php $__env->startSection('titulo', 'Lista de responsables'); ?>
<?php $__env->startSection('botonera'); ?>
	<?php if(strstr(Auth::user()->permisos['responsables'], 'c') || Auth::user()->id == 1): ?>
		<a href="<?php echo URL::to('/responsable/create'); ?>" class="btn btn-primary">Crear un nuevo Responsable</a>
	<?php endif; ?>
	<?php echo $__env->make('componentes.boton-salir-sin-aviso', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
	<?php echo $__env->make('alerts.request', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
	<div class="row">
		<ul class="nav nav-tabs">
			<li id="btnDocumento" role="presentation">
				<a>Ordenar por Documento
					<span id="downd" class="glyphicon glyphicon-arrow-down" aria-hidden="true"></span>
					<span id="upd" class="glyphicon glyphicon-arrow-up" aria-hidden="true"></span>
				</a>
			</li>
			<li id="btnApellido" role="presentation" class="active">
				<a>Ordenar por Apellido
					<span id="downa" class="glyphicon glyphicon-arrow-down" aria-hidden="true"></span>
					<span id="upa" class="glyphicon glyphicon-arrow-up" aria-hidden="true"></span>
				</a>
			</li>
		</ul>
	</div>
	<div class="row">
	<div class="table-responsive">
			<table id='tabla-pacientes' class="table table-striped table-bordered table-hover table-condensed">
				<?php echo $__env->make('formularios.ajax-lista-responsables', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
			</table>
		</div>
	</div>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
	<script type="text/javascript">
		var rutaPadre = '<?php echo e(URL::to("/")); ?>/';
	</script>
	<?php echo Html::script('js/ajax-ordenar-responsables.js'); ?>

	<script type="text/javascript">
		$(document).ready(function(){
			<?php echo $__env->make('componentes.script-mostrar-modal-request', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>;
		})
	</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin-bloqueo-vista', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>