@extends('layouts.app') @section('title', 'Manajemen Pengguna') @section('page-title', 'Manajemen Pengguna') @section('breadcrumb', 'Admin / Pengguna') @section('no-error-banner', '1') @section('content')

Daftar Pengguna

{{ $users->total() }} akun terdaftar
@if ($errors->any())
{{ $errors->first() }}
@endif
Semua Aktif Nonaktif
@forelse ($users as $u) @empty @endforelse
NamaEmailRoleProgram KeahlianStatus
{{ $u->name }} {{ $u->email }} {{ $u->role->name }} {{ $u->programKeahlian->nama_jurusan ?? '—' }} @if ($u->is_active) Aktif @else Nonaktif @endif Edit  ·  Reset Sandi @if ($u->id !== auth()->id())  · 
@csrf @method('PATCH')
@endif
Belum ada pengguna.
@if ($users->hasPages())
@if ($users->onFirstPage()) ← Sebelumnya @else ← Sebelumnya @endif Hal. {{ $users->currentPage() }} / {{ $users->lastPage() }} @if ($users->hasMorePages()) Berikutnya → @else Berikutnya → @endif
@endif
{{-- ================= MODAL TAMBAH PENGGUNA ================= --}} {{-- ================= MODAL EDIT & RESET PER USER ================= --}} @foreach ($users as $u) @endforeach @endsection @section('scripts') @endsection