@extends('admin.layouts.app') @section('title', 'Admin Users') @section('content')
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif

Admin Users

Manage all admin users

Add New Admin
@if(request('search') || request('role_id') || request('status') !== '') @endif
Total: {{ $admins->total() }}
@forelse($admins as $admin) @empty @endforelse
# Image Name Email Status Created At Actions
{{ $loop->iteration + ($admins->currentPage() - 1) * $admins->perPage() }} @if($admin->image) {{ $admin->name }} @else
{{ substr($admin->name, 0, 2) }}
@endif
{{ $admin->name }}
{{ $admin->email }} @if($admin->status) Active @else Inactive @endif {{ $admin->created_at->format('d M Y, h:i A') }}
@if($admin->id == 1) {{-- Super Admin - Protected --}}
Super Admin Protected
@else {{-- Edit --}} {{-- Toggle Status --}} @if($admin->id != Auth::guard('admin')->id()) {{-- Delete --}} @else {{-- Current user - cannot modify self --}} @endif @endif
No Admin Users Found

Start by adding your first admin user

Add Admin @if(request('search') || request('role_id') || request('status') !== '') Clear Filters @endif
@endsection