@include('super-admin.inc.header-links')
User | Role | Status | |
---|---|---|---|
{{ $user->name }} |
{{ $user->email }} |
@php
$icons = [
'Admin' => 'ri-vip-crown-line text-primary',
'Teacher' => 'ri-edit-box-line text-warning',
'Student' => 'ri-user-3-line text-success',
'Parent' => 'ri-home-line text-info',
];
$icon = $icons[$user->role] ?? 'ri-user-line text-muted';
@endphp
{{ $user->role }}
|
@php $daysSince = now()->diffInDays($user->created_at); $status = $daysSince <= 7 ? 'Active' : 'Pending'; $badge = $status == 'Active' ? 'success' : 'warning'; @endphp {{ $status }} |
No users found. |