@include('admin.Master.header')
{!! Form::text('name', $role->name, ['placeholder' => 'Name', 'class' => 'form-control', 'readonly' => 'true']) !!}
@php $i = 0; @endphp @foreach ($permission as $groupName)
@php $permissions = Spatie\Permission\Models\Permission::select('id', 'display_name') ->where('main_group', $groupName->main_group) ->get(); $counterd = 1; $corder = 2; @endphp @foreach ($permissions as $per) @if (in_array($per->id, $rolePermissions)) @php $counterd++; @endphp @endif
@php $corder++; @endphp @endforeach {{--
@if ($counterd == 5 || $counterd == 2) @endif
--}}
@php $i++; @endphp @endforeach
@include('admin.Master.footer')