@extends('layouts.admin') @section('title', 'Admin Users') @section('breadcrumb', 'Admin Users') @section('content')

Admin Users

Manage administrator accounts and their access

Add New Admin
Clear
@if($users->count() > 0)
{{-- The row checkboxes live in the table and associate with this form via form="bulk-form" — the rows already contain their own action forms, and forms cannot nest. --}}
@csrf @method('PATCH')
@foreach($users as $user) @endforeach
Select Admin Admin Role Status Last Login Joined Actions
id === auth()->id() ? 'disabled' : '' }}>
{{ substr($user->name, 0, 1) }}
{{ $user->name }} @if($user->id === auth()->id()) (You) @endif
{{ $user->email }}
@if($user->phone)
{{ $user->phone }}
@endif
@forelse($user->adminRoles as $assignedRole) {{ $assignedRole->name }} @empty No role assigned @endforelse @if($user->email_verified_at) Active @else Inactive @endif {{ $user->last_login_at ? $user->last_login_at->ist()->format('M d, Y H:i') : 'Never' }} {{ $user->created_at->ist()->format('M d, Y') }}
@if($user->id !== auth()->id())
@csrf @method('PATCH')
@csrf @method('DELETE')
@endif
{{ $users->links() }}
@else

No admins found

Get started by creating a new admin.

@endif
@endsection