@extends('layouts.admin') @section('title', 'User Management') @section('content')

User Management

Admin can view all users and change roles. New registrations are normal users by default.

@foreach ($users as $user) @endforeach
ID Name Email 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())
@csrf @method('PATCH')
@else You @endif
@endsection