@extends('layouts.admin') @section('content')
Total: {{ $users->total() }}
| 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 | |
| No users found | ||||