| {{ $user->id }} |
@php
$initials = strtoupper(substr($user->name, 0, 1));
$bgColors = ['#3498db', '#e74c3c', '#2ecc71', '#f39c12', '#9b59b6'];
$colorIndex = $user->id % count($bgColors);
$bgColor = $bgColors[$colorIndex];
@endphp
{{ $initials }}
{{ $user->name }}
{{ $user->email }}
|
@foreach($user->roles->unique() as $role)
@php
$roleClass = strtolower(str_replace(' ', '-', $role->name));
@endphp
{{ $role->name }}
@endforeach
|
@if($user->status == 'active')
Active
@else
Active
@endif
|
|
@endforeach