@php $privious_value = ''; $i=0; foreach($permissions as $permission){ $newPermission[$permission->module][$i]=$permission; $i++; } @endphp
@foreach($newPermission as $key=> $newpermission) @foreach($newpermission as $permission) @endforeach @endforeach
Section Read Write
{{$key }}
id, $permissionsIds))?'':'checked'}}>
@php $privious_value = $permission->module; @endphp
@if(Auth::user()->roles->first()->slug =='admin') {{Form::label('default_permission', 'Set Permission')}} {!!Form::select('default_permission', ['0'=>'Company Permission','1'=>'Default Permission'], $is_default, ['class' => 'form-control'])!!} @endif