<?php $__env->startSection("content"); ?>
<div>
    <ol class="breadcrumb">
      <li><a href="<?php echo e(URL::route('user.index')); ?>">Users</a></li>
        <li><a href="<?php echo e(URL::route('role.assign')); ?>">Assign Roles</a></li>
      <li><a href="<?php echo e(URL::route('permission.index')); ?>"> Permissions</a></li>
      <li><a href="<?php echo URL::route('role.index'); ?>"><?php echo Lang::choice('messages.role',1); ?></a></li>
      <li class="active"><?php echo trans('messages.new-role'); ?></li>
    </ol>
</div>
<div class="col-md-8 col-md-offset-2">
  <div  class="panel panel-default row" style="width:90%">
    <div class="panel-heading ">
        <span class="glyphicon glyphicon-user"></span>
        <?php echo trans('messages.new-role'); ?>

    </div>
    <div class="panel-body">
    <!-- if there are creation errors, they will show here -->
        <?php if($errors->all()): ?>
            <div class="alert alert-danger">
                <?php echo HTML::ul($errors->all()); ?>

            </div>
        <?php endif; ?>

        <?php echo Form::open(array('url' => 'role', 'id' => 'form-create-role')); ?>


            <div class="form-group">
                <?php echo Form::label('name','Role'); ?>

                <?php echo Form::text('name', Input::old('name'), array('class' => 'form-control')); ?>

            </div>
            <div class="form-group">
                <?php echo Form::label('description', trans('messages.description')); ?>

                <?php echo Form::textarea('description', Input::old('description'),
                    array('class' => 'form-control', 'rows' => '2')); ?>

            </div>
            <div class="form-group actions-row">
                    <?php echo Form::button("<span class='glyphicon glyphicon-save'></span> ".trans('messages.save'),
                        array('class' => 'btn btn-primary', 'onclick' => 'submit()')); ?>

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

    </div>
</div>
	<footer class="text-center"> <?php echo HTML::link('http://www.cphl.go.ug', '&copy; UNHLS  ' . date("Y")); ?></footer>
<?php $__env->stopSection(); ?>

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