@extends('layouts.admin') @section('content')

Admin Team

Total: {{ $users->total() }}

{{--
--}}
Users
Showing {{ $users->firstItem() ?? 0 }} to {{ $users->lastItem() ?? 0 }} of {{ $users->total() }}
@forelse($users as $user) @empty @endforelse
User Contact Role Status Actions
@php $colors = ['#7D26C2', '#28a745', '#17a2b8', '#ffc107']; $color = $colors[$user->id % count($colors)]; @endphp
{{ strtoupper(substr($user->name, 0, 2)) }}
{{ $user->name }}
#{{ $user->id }}
{{ $user->email }}
@if($user->phone_number){{ $user->phone_number }}@endif
@foreach($user->roles as $role) @php $roleColors = ['admin'=>'#7D26C2', 'lawyer'=>'#28a745', 'editor'=>'#17a2b8']; $roleColor = $roleColors[strtolower($role->name)] ?? '#6c757d'; @endphp {{ $role->name }} @endforeach @if($user->status == 'active') Active @elseif($user->status == 'deactivated') Deactivated @else Terminated @endif
@csrf @method('DELETE')
No users found
@if ($errors->any()) @endif @endsection