@foreach (['list', 'create', 'edit', 'show', 'delete','alltask'] as $action)
@php
$permissionKey = array_search($module . ' ' . $action, $permissions);
@endphp
@if ($permissionKey !== false)
permissions->pluck('id')->toArray() ?? []) ? 'checked' : '' }}>
@endif
@endforeach