@php $arr=[0=>'index',1=>'create',2=>'store',3=>'edit',4=>'update',5=>'destroy',6=>'other',7=>'report']; @endphp @forelse($permissions->groupBy('group_name') as $key=>$group)