@php $permissionsCount = count($permissions); @endphp
@php $permissionsPerColumn = ceil($permissionsCount / 4); @endphp
@for ($i = 0; $i < 4; $i++)
@foreach ($permissions->slice($i * $permissionsPerColumn, $permissionsPerColumn) as $permission)
id, $selectedPermissions)) checked @endif>
@endforeach