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

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

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

<?php $__env->startSection('content'); ?>
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper" >
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                <span class="fa fa-user-plus"></span> New User
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-user-plus"></i> Admin Panel</a></li>
                <li class="active">New User</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content" style=" padding-bottom: 100%;">
            <div class="page-header">
                <a href="<?php echo e(route('users')); ?>" class="btn btn-primary"><i class="fa fa-backward"></i> Back</a>
            </div>

            <form method="post" action="<?php echo e(route('user.new')); ?>">
                <div class="col-md-6">
                    <div class="form-group has-feedback <?php if($errors->has('full_name')): ?> has-error <?php endif; ?>">
                        <label for="full_name" class="control-label">Full Name</label>
                        <input type="text" name="full_name" id="full_name" class="form-control">
                        <span class="glyphicon glyphicon-book form-control-feedback"></span>
                        <?php if($errors->has('full_name')): ?> <span class="help-block"><?php echo e($errors->first('full_name')); ?></span> <?php endif; ?>
                    </div>
                    <div class="form-group has-feedback <?php if($errors->has('name')): ?> has-error <?php endif; ?>">
                        <label for="name" class="control-label">Username</label>
                        <input type="text" name="name" id="name" class="form-control">
                        <span class="glyphicon glyphicon-user form-control-feedback"></span>
                        <?php if($errors->has('name')): ?> <span class="help-block"><?php echo e($errors->first('name')); ?></span> <?php endif; ?>
                    </div>
                    <div class="form-group has-feedback <?php if($errors->has('email')): ?> has-error <?php endif; ?>">
                        <label for="email" class="control-label">Email Address</label>
                        <input type="email" name="email" id="email" class="form-control">
                        <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
                        <?php if($errors->has('email')): ?> <span class="help-block"><?php echo e($errors->first('email')); ?></span> <?php endif; ?>
                    </div>
                    <div class="form-group has-feedback <?php if($errors->has('role')): ?> has-error <?php endif; ?>">
                        <label for="role" class="control-label">Roles</label>
                        <select name="role" id="role" class="form-control">
                            <option value="">Select Role</option>
                                <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($role->id); ?>"><?php echo e($role->name); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                        <span class="fa fa-user-md form-control-feedback"></span>
                        <?php if($errors->has('role')): ?> <span class="help-block"><?php echo e($errors->first('role')); ?></span> <?php endif; ?>
                    </div>
                    <div class="form-group has-feedback <?php if($errors->has('password')): ?> has-error <?php endif; ?>">
                        <label for="password" class="control-label">Password</label>
                        <input type="password" name="password" id="password" class="form-control">
                        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                        <?php if($errors->has('password')): ?> <span class="help-block"><?php echo e($errors->first('password')); ?></span> <?php endif; ?>
                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-success btn-s">Create</button>
                    </div>
                    <?php echo e(csrf_field()); ?>

                </div> 
            </form>

        </section>
        <?php if(Session('info')): ?>
            <div class="row">
            <div class="col-md-6 col-md-offset-3 text-center">
            <div class="tem alert alert-success navbar-fixed-bottom"><span class="glyphicon glyphicon-ok-circle"></span> <?php echo e(Session('info')); ?></div>
            </div>
            </div>
        <?php endif; ?>

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

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

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