@extends('layouts.app') @section('content')
@csrf
@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
@endfor
@if(session('success')) @endif @if ($errors->any()) @endif @endsection