@include('groups.group-modal') @if(canViewUpdate('add-group'))
@endif
@foreach($groups as $group) @endforeach
{{ __('Group') }} {{ __('Users') }} {{ __('Edit') }} {{ __('Delete') }}
{{ __($group->name) }} - {{ $organisation->name }} @if($group->editable) {{ $group->users->count() }} @else {{ App\Models\Group::{str_replace('-', '', $group->name)}($group->organisation_id)->count() }} @endif @if(canViewUpdate('edit-group') && $group->editable)

@endif
@if(canViewUpdate('delete-group') && $group->editable)

@endif
{{ $groups->links('vendor.pagination.tasks', ['class' => 'parent-pagination']) }}