<?php $__env->startSection('title'); ?> Change Password <?php $__env->stopSection(); ?>

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

<div class='col-lg-4 col-lg-offset-4'>

    <h1><i class='fa fa-user'></i> Change Password</h1>

    <?php echo Form::open(['role' => 'form', 'action' => array('AdminController@putChangePassword'), 'method' => 'PUT']); ?>


    <div class='form-group'>
        <?php echo Form::label('current_password', 'Current Password'); ?>

        <?php echo Form::text('current_password', null, ['placeholder' => 'Current Password', 'class' => 'form-control', 'required']); ?>


        <?php if($errors->has('current_password')): ?>
        <div class='bg-danger alert'><?php echo $errors->first('current_password'); ?></div>
        <?php endif; ?>
    </div>

    <div class='form-group'>
        <?php echo Form::label('new_password', 'Password'); ?>

        <?php echo Form::text('new_password', null, ['placeholder' => 'Password', 'class' => 'form-control', 'required']); ?>


        <?php echo Form::label('confirm_password', 'Name'); ?>

        <?php echo Form::text('confirm_password', null, ['placeholder' => 'Name', 'class' => 'form-control', 'required']); ?>


        <?php if($errors->has('confirm_password')): ?>
        <div class='bg-danger alert'><?php echo $errors->first('confirm_password'); ?></div>
        <?php endif; ?>
    </div>

    <div class='form-group'>
        <?php echo Form::submit('Change Password', ['class' => 'btn btn-primary']); ?>

    </div>

    <?php echo Form::close(); ?>


</div>

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