@extends ('../welcome') @section('content')

Users


Total: {{ count($UserChildren) }}
@if(auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('users-export')) @endif @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('users-create')) @endif @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('users-tree')) @endif @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('users-blocklist')) @endif
user()->type == 'admin' || auth()->user()->role->hasPermission('users-export') ? 'example1' : 'nonExport' }} > @if (auth()->user()->type == 'admin' || auth()->user()->role->name == 'Operation Specialist') @forelse ($UserChildren as $user) @empty @endforelse @else @for ($i = 0; $i < count($UserChildren); $i++) @endfor @endif
ID Name Email Phone Numbers Role Leader Created at Actions
{{ $user->id }} id) }}'> {{ $user->name ?? '' }} {{ $user->email ?? '' }} @foreach ($user->phones as $phone) {{-- redirect to whatsapp --}} {{ $phone->country->name ?? '' }} - {{ $phone->phone ?? '' }} @endforeach {{ $user->role?->name ?? '' }} {{ $user->parent?->name ?? '' }} {{ $user->created_at }} @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('users-edit')) @endif @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('users-block')) @endif
{{ $UserChildren[$i]['id'] }} {{ $UserChildren[$i]['name'] ?? '' }} {{ $UserChildren[$i]['email'] ?? '' }} {{ $UserChildren[$i]['created_at'] ?? '' }} @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('users-edit')) @endif @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('users-block')) @endif
@endsection