@extends('admin.master') @section('title', trans('general.user-manage')) @section('content')

@if (isset($_GET['q'])) 搜索结果:{{ $_GET['q'] }} @else {{ trans('general.user-manage') }} @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('style') @endsection @section('script') @endsection