@if (count($errors) > 0)
Whoops! There were some problems with your input.
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
@if ($message = Session::get('fail'))
Whoops! There were some problems with your input.
{{ $message }}
@endif
@php
$i = 0;
$group = '';
@endphp
@foreach ($permissions as $permission)
@php $label_id = 'lblRole' . $i; @endphp
@if ($group != $permission->group)
@php $group = $permission->group; @endphp
@if ($i != 0)
@endif
{!! Form::submit('Submit', ['class' => 'btn btn-primary'])!!}
{!! link_to_route('admin.roles.index', 'Cancel', null, ['class' => 'btn btn-danger']) !!}