@php use \App\Enums\UserStatus as uStatus; use \App\Enums\UserRoles as uRole; $searchFormAction = blank($getUserGroup) ? route('admin.users.manage.groups') : route('admin.users.manage.groups', data_get($getUserGroup, 'id')); @endphp @extends('admin.layouts.master') @section('title', __('Manage Groups')) @section('content')

{{ __('Manage Groups') }}

{{ __('List of groups that you can manage / edit.') }}

{{ __("Manage Group") }}
{{ __("Add") }}
@if(filled($userList))
{{ __('User') }}
{{ __("Groups") }}
{{ __("Status") }}
 
@foreach($userList as $user)
{!! user_avatar($user, 'xs') !!}
{{ data_get($user, 'name') }}
@if ($user->user_groups()->count() > 0)
    @php $i = 0; @endphp @foreach ($user->user_groups as $usrGroup) @if ($i < 2)
  • {{ __(ucfirst(data_get($usrGroup, 'label'))) }}
  • @endif @php $i++; @endphp @endforeach @if ($i > 2)
  • + {{ $i - 2 }}
  • @endif
@endif
{{ __(ucfirst(data_get($user, 'status'))) }}
@endforeach
@if(filled($userList) && $userList->hasPages())
{{ $userList->appends(request()->all())->links('misc.pagination') }}
@endif @else
@if(request()->filled('query'))
{{ __('Nothing Found!') }}

{{ __("It seems we can't find what you're looking for. Maybe try another search.") }}

@else
{{ __('We did not find any user here.') }}
@endif
@endif
@endsection @push('modal') {{-- Send Email Modal --}} @endpush @push('scripts') @endpush