@extends('layouts.admin') @section('title', 'User Management') @section('content')
Admin can view all users and change roles. New registrations are normal users by default.
| ID | Name | Role | Searches | Joined | Action | |
|---|---|---|---|---|---|---|
| {{ $user->id }} | {{ $user->name }} | {{ $user->email }} | {{ $user->role }} | {{ $user->search_logs_count }} | {{ $user->created_at?->format('Y-m-d') }} | @if ($user->id !== auth()->id()) @else You @endif |