@forelse($groups as $group)
<div class="sBsGroupsItm">
<i class="fas fa-tags"></i>
<label for="group_{{$group->id}}">
<input type="checkbox" id="group_{{$group->id}}" name="groups[]" value="{{$group->id}}">
{{$group->name}}
</label>
</div>
@empty
@endforelse
$nGroups = array:2 [▼
0 => "1"
1 => "3"
]