@extends('layouts.app2') @section('title', '| Create Permission') @section('badcome') @endsection @section('content')
{{-- @include ('errors.list') --}}

Add Permission


{{ Form::open(array('url' => 'user_management/permissions')) }}
{{ Form::label('name', 'Name') }} {{ Form::text('name', '', array('class' => 'form-control')) }} @if ($errors->has('name'))

{{ $errors->first('name') }}

@endif
{!! Form::label('module', 'Module') !!} @if ($errors->has('module'))

{{ $errors->first('module') }}

@endif

@if(!$roles->isEmpty())

Assign Permission to Roles

@foreach ($roles as $role) @if($role->name=="Admin") {{ Form::checkbox('roles[]', $role->id,'checked' ) }} {{ Form::label($role->name, ucfirst($role->name)) }}
@else {{ Form::checkbox('roles[]', $role->id ) }} {{ Form::label($role->name, ucfirst($role->name)) }}
@endif @endforeach @endif
{{ Form::submit('Add', array('class' => 'btn btn-primary btn-sm')) }} Back {{ Form::close() }}
@endsection