@extends('admin.layouts.app') @section('title', 'Users') @section('breadcrumb') / Users @endsection @section('content')
Manage system users and their access
| S.N. | User ID | Name | Mobile | Designation | Department | Role | Status | Last Login | Actions | |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ ($users->currentPage()-1)*$users->perPage() + $i + 1 }} |
{{ $user->user_id }}
|
{{ $user->name }}
|
{{ $user->mobile }} | {{ $user->email }} | {{ $user->designation ?? '—' }} | {{ $user->department->name ?? '—' }} | @php $roleColors=['super_admin'=>'danger','admin'=>'primary','manager'=>'info','csr_manager'=>'warning','accountant'=>'success','volunteer'=>'secondary','staff'=>'light']; @endphp {{ $user->role->name ?? ucfirst($user->user_type) }} |
status === 'active' ? 'checked' : '' }}
data-id="{{ $user->id }}"
data-url="{{ route('admin.users.toggle-status', $user) }}"
{{ $user->id === auth()->id() || !auth()->user()->hasPermission('users.edit') ? 'disabled' : '' }}>
|
{{ $user->last_login_at ? $user->last_login_at->diffForHumans() : 'Never' }} | |
|
No users found @if(auth()->user()->hasPermission('users.create')) Register First User @endif |
||||||||||