@extends('admin.master') @section('title', '用户管理') @section('content')

@if (isset($_GET['q'])) 搜索结果:{{ $_GET['q'] }} @else 用户管理 @endif User Management

@forelse($users as $user) @empty @endforelse
UID 邮箱 昵称 积分 状态 注册时间 操作
{{ $user->uid }} {{ $user->email }} {{ $user->nickname }} @if ($user->permission == "0") 正常 @elseif ($user->permission == "-1") 封禁 @elseif ($user->permission == "1") 管理员 @elseif ($user->permission == "2") 超级管理员 @endif {{ $user->register_at }}
{{-- If current user is super admin --}} @if ($current_user->getPermission() == "2") @if ($user->permission == "2") 删除用户 @else 删除用户 @endif @else @if ($user->permission == "1" || $user->permission == "2") 删除用户 @else 删除用户 @endif @endif
0 无结果 (´・ω・`)
@endsection @section('script') @endsection