@if (count($errors) > 0)
Whoops! There were some problems with your input.
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
{!! Form::model($role, ['class'=>'form-vertical','method' => 'PATCH','route' => ['roles.update', $role->id]]) !!}
{!! Form::text('display_name', null, array('placeholder' => 'Name','class' => 'm-wrap span12')) !!}
{!! Form::textarea('description', null, array('placeholder' => 'Description','class' => 'm-wrap span12')) !!}
@foreach($permission as $value)
{{ Form::checkbox('permission[]', $value->id, in_array($value->id, $rolePermissions) ? true : false, array('class' => 'name')) }}
{{ $value->display_name }}
@endforeach