

<?php $__env->startSection('title'); ?>
    <?php echo e(config('app.name')); ?> | Perfil
<?php $__env->stopSection(); ?>

<?php $__env->startSection('header'); ?>
    <a href="<?php echo e(route('home')); ?>" class="w3-bar-item w3-button"><span class="fa fa-home fa-fw"></span> Home</a>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="w3-content">
    <h2 class="w3-center"><span class="fa fa-user-circle fa-4x"></span></h2>
    <span class="help-block"><b>Nota:</b> La información aquí presente, corresponde a la información almacenada en el sistema de Correos Institucioanales; para acutalizar sus datos debe ingresar a este sistema, o contactar al Área TIC para el respectivo soporte.</span>
</div>

<div class="w3-content">
	<p>
		<?php echo e(Form::label('nombres', 'Nombres*')); ?>

		<?php echo e(Form::text('nombres', $usuario->cuenta->cuenta_primer_nombre.' '.$usuario->cuenta->cuenta_segundo_nombre, ['class' => 'w3-input w3-border w3-border-theme w3-round', 'placeholder' => 'Nombres', 'disabled'])); ?>

	</p>

	<p>
		<?php echo e(Form::label('apellidos', 'Apellidos*')); ?>

		<?php echo e(Form::text('apellidos', $usuario->cuenta->cuenta_primer_apellido.' '.$usuario->cuenta->cuenta_segundo_apellido, ['class' => 'w3-input w3-border w3-border-theme w3-round', 'placeholder' => 'Apellidos', 'disabled'])); ?>

	</p>

	<p>
		<?php echo e(Form::label('email', 'E-mail Institucional*')); ?>

		<?php echo e(Form::email('email', $usuario->email, ['class' => 'w3-input w3-border w3-border-theme w3-round', 'placeholder' => 'E-mail Institucional', 'disabled'])); ?>

	</p>

	<p>
		<?php echo e(Form::label('rol_id', 'Rol*')); ?>

		<?php echo e(Form::select('rol_id', $roles->pluck('rol_nombre', 'rol_id'), $usuario->rol_id, ['class' => 'w3-input w3-border w3-border-theme w3-round w3-disabled', 'placeholder' => 'Seleccionar', 'disabled'])); ?>

	</p>

	<p>
		<button type="button" class="w3-btn w3-theme w3-round" onclick="document.getElementById('reset_ps_modal').style.display='block'"><span class="fa fa-key fa-fw"></span> Cambiar Contraseña</button>
	</p>
</div>

<div class="w3-container">
    <div id="reset_ps_modal" class="w3-modal">
    <div class="w3-modal-content">
      <header class="w3-container w3-center w3-theme w3-padding"> 
        <span onclick="document.getElementById('reset_ps_modal').style.display='none'" class="w3-button w3-display-topright">&times;</span>
        <h3><span class="fa fa-user fa-fw"></span> Cambiar contraseña</h3>
      </header>
      <div class="w3-container w3-padding">
        <?php echo Form::open(['route' => ['erc.usuarios.reset', $usuario], 'method' => 'post']); ?> 
            <p>
                <?php echo e(Form::label('lastpassword', 'Contraseña Actual*')); ?>

                <?php echo e(Form::password('lastpassword', ['class' => 'w3-input w3-border w3-border-theme w3-round', 'placeholder' => 'Contraseña actual', 'required', 'pattern' => '.{5,15}'])); ?>

            </p>

            <p>
                <?php echo e(Form::label('newpassword', 'Nueva contraseña*')); ?>

                <?php echo e(Form::password('newpassword', ['class' => 'w3-input w3-border w3-border-theme w3-round', 'placeholder' => 'Nueva contraseña (Min. 8. Max. 15 caracteres)', 'required', 'pattern' => '.{8,15}'])); ?>

            </p>

            <p>
                <?php echo e(Form::label('confirmpassword', 'Confirmar contraseña*')); ?>

                <?php echo e(Form::password('confirmpassword', ['class' => 'w3-input w3-border w3-border-theme w3-round', 'placeholder' => 'Confirmar contraseña (Min. 8. Max. 15 caracteres)', 'required', 'pattern' => '.{8,15}'])); ?>

            </p>

            <p>
                <button type="submit" class="w3-btn w3-theme w3-round"><span class="fa fa-save fa-fw"></span> Guardar</button>
                <button type="button" class="w3-btn w3-red w3-round" onclick="document.getElementById('reset_ps_modal').style.display='none'"><span class="fa fa-times fa-fw"></span> Cancelar</button>
            </p>
        <?php echo Form::close(); ?>

      </div>
      <footer class="w3-container w3-center w3-light-grey w3-padding">
        <p><?php echo e(config('app.name')); ?> | 2018 - <?php echo e(date('Y')); ?></p>
      </footer>
    </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

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