@foreach ($groups as $group)
    <div class="checkbox">
        <label>
            <input name="allowed_groups[]" type="checkbox" value="{{ $group->id }}"{{ $page->inAllowedGroups($group->id) ? ' checked' : '' }}>
            {{ $group->name }}
        </label>
    </div>
@endforeach
