@extends('layouts.template') @section('content')

Kelola Admin

Tambah, edit, atau hapus akun admin

Tambah Admin
@if(session('success')) @endif @if(session('error')) @endif
Total Admin

{{ $users->count() }}

Super Admin

{{ $users->where('role', 'superadmin')->count() }}

Admin

{{ $users->where('role', 'admin')->count() }}

Daftar Admin
{{ $users->count() }} Admin
@forelse($users as $index => $user) @empty @endforelse
No Nama Email Role Terdaftar Aksi
{{ $index + 1 }}
{{ $user->name }} @if($user->id == auth()->id()) Anda @endif
{{ $user->email }} @if($user->role == 'superadmin') Super Admin @else Admin @endif {{ $user->created_at->format('d M Y') }}
@if($user->id != auth()->id()) @else @endif

Belum ada data admin

@forelse($users as $index => $user)
Admin #{{ $index + 1 }}
{{ $user->name }}
@if($user->role == 'superadmin') Super @else Admin @endif
{{ $user->email }}
Terdaftar {{ $user->created_at->format('d M Y') }}
@if($user->id == auth()->id())
Akun Anda
@endif

Edit @if($user->id != auth()->id()) @else @endif
@empty

Belum ada data admin

Tambah Admin
@endforelse
@endsection @section('styles') @endsection