@extends('admin.layout') @section('title', 'Users') @section('content') {{-- ── Page header ──────────────────────────────────────────────────── --}}

Users

{{-- ── Alerts ───────────────────────────────────────────────────────── --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- ── Filter card ──────────────────────────────────────────────────── --}}
@if(request()->hasAny(['search','role','sort'])) Clear @endif
{{-- ── Users table ──────────────────────────────────────────────────── --}}
All Users {{ $users->total() ?? $users->count() }}
@forelse($users as $user) {{-- User cell --}} {{-- Role --}} {{-- Verified --}} {{-- Videos --}} {{-- Joined --}} {{-- Actions --}} @empty @endforelse
User Role Verified Videos Joined Actions
{{ $user->name }}
{{ $user->name }} @if($user->id === auth()->id()) you @endif
@if($user->role === 'super_admin') Super Admin @elseif($user->role === 'admin') Admin @else User @endif @if($user->email_verified_at) Verified @else Pending @endif {{ $user->videos->count() }} {{ $user->created_at->format('M d, Y') }}
@if(!$user->email_verified_at)
@csrf
@endif @if($user->id !== auth()->id() && !$user->isSuperAdmin())
@csrf
@endif @if($user->id !== auth()->id()) @endif

No users found

{{-- Pagination --}} @if($users instanceof \Illuminate\Pagination\LengthAwarePaginator && $users->hasPages())
{{ $users->onEachSide(1)->links() }}
@endif
{{-- ── Delete confirmation dialog ───────────────────────────────────── --}}
Delete User

You are about to permanently delete .

All videos uploaded by this user will also be deleted. This cannot be undone.
@endsection @section('scripts') @endsection