Create Role form
Please fill the required fields
{!! Form::open(array('route' => 'roles.store','method'=>'POST')) !!}
{!! Form::close() !!}
@error('name')
@enderror
@php
$lastgr=""
@endphp
@foreach($permission as $value)
@if( $value->group !=$lastgr)
@endif
{{ Form::checkbox('permission[]', $value->id, false, array('class' => 'name')) }}
@php
$lastgr=$value->group
@endphp
@endforeach