@if ($general->where('type', $type)->count())
@lang('General Permissions')
@foreach($general->where('type', $type) as $permission) id, $usedPermissions ?? [], true) ? 'checked' : '' }} value="{{ $permission->id }}" id="{{ $permission->id }}" /> @endforeach
@endif @if ($general->where('type', $type)->count() && $categories->where('type', $type)->count())
@endif @if ($categories->where('type', $type)->count())
@lang('Permission Categories')
@endif @if (!$general->where('type', $type)->count() && !$categories->where('type', $type)->count())

@lang('There are no additional permissions to choose from for this type.')

@endif