@extends('layouts.main') @section('title', 'Manage Users – Admin') @section('styles') @endsection @section('content')

MANAGE USERS

View and manage all registered users

@if(session('success'))
{{ session('success') }}
@endif
All Users ({{ $users->total() }})
@foreach($users as $user) @endforeach
User Email Posts Role Joined Action
{{ strtoupper(substr($user->name, 0, 1)) }} {{ $user->name }} {{ $user->email }} {{ $user->posts_count }} {{ $user->is_admin ? 'Admin' : 'User' }} {{ $user->created_at->format('d M Y') }} @if($user->id !== auth()->id())
@csrf @method('PATCH')
@csrf @method('DELETE')
@else You @endif
{{ $users->links() }}
@endsection