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

<div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2>Add Product</h2>
                    <ol class="breadcrumb">
                        <li>
                            <a href="<?php echo e(url('')); ?>">Home</a>
                        </li>
                        <li>
                             <a href="<?php echo e(url('products')); ?>">Products</a>
                        </li>
                        <li class="active">
                            <strong>Add New</strong>
                        </li>
                    </ol>
                </div>
                <div class="col-lg-2">

                </div>
            </div>
			
			<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>Add Product</h5>
                            <div class="ibox-tools">
                                <a class="collapse-link">
                                    <i class="fa fa-chevron-up"></i>
                                </a>
                                
                                
                            </div>
                        </div>
						<div class="ibox-content">
						<form action="<?php echo e(url('users')); ?>" class="form-horizontal" method="POST" enctype='multipart/form-data'>
                        <?php echo e(csrf_field()); ?>

                                <div class="form-group"><label class="col-sm-2 control-label">Name</label>
                                    <div class="col-sm-10"><input type="text" class="form-control" id="name" name="name" value="<?php echo e(old('name')); ?>"></div>
                                </div>
                                <div class="hr-line-dashed"></div> 
								<div class="form-group">
								<label class="col-sm-2 control-label">Email</label>
                                    <div class="col-sm-10"><input type="text" class="form-control" id="email" name="email" value="<?php echo e(old('email')); ?>"></div>
                                </div>
								<div class="hr-line-dashed"></div> 
								
								

                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="role_id">Role</label>
							<div class="col-sm-10">
                            <select class="form-control" id="role_id" name="role_id">
                                <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($role->id); ?>" <?php echo e(!($role->id == old('role_id')) ?: 'selected="selected"'); ?> ><?php echo e($role->display_name); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                        </div>

                        <div class="hr-line-dashed"></div> 

                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="password">Password</label>
							<div class="col-sm-10">
                            <input type="password" class="form-control" id="password" name="password">
							</div>
                        </div>
<div class="hr-line-dashed"></div> 
                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="password_confirmation">Confirm Password</label>
							<div class="col-sm-10">
                            <input type="password" class="form-control" id="password_confirmation" name="password_confirmation">
							</div>
                        </div>
								<div class="hr-line-dashed"></div> 
								
								
								<div class="form-group">
                                    <div class="col-sm-4 col-sm-offset-2">
                                        
										 <a class="btn btn-white" href="<?php echo e(url('products')); ?>">Cancel</a>
                                        <button class="btn btn-primary" type="submit">Save changes</button>
                                    </div>
                                </div>
								
								
                            </form>
                        </div>
                    </div>
                </div>
            </div>
			</div>
			

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