@extends('layouts.app') @section('title', 'User Management') @section('content')
| User | Role | Designation | Last Login | Status | Actions |
|---|---|---|---|---|---|
|
{{ strtoupper(substr($user->name,0,2)) }}
{{ $user->name }} {{ $user->email }} |
@php $rc=['admin'=>'danger','manager'=>'primary','accountant'=>'info','hr'=>'purple','sales'=>'success','purchase'=>'warning','warehouse'=>'secondary','readonly'=>'secondary']; @endphp {{ ucfirst($user->role) }} | {{ $user->designation ?? '—' }} |
@if($user->last_login_at)
{{ $user->last_login_at->format('d M Y H:i') }}
{{ $user->last_login_at->diffForHumans() }}
@else Never @endif
|
{{ $user->is_active ? 'Active' : 'Inactive' }} @if($user->id===auth()->id())You@endif | |
| No users found. Add your first user | |||||