<commit_before>@extends('layouts.admin')

@section('title', '用户管理')
@section('breadcrumb')
    <ol class="breadcrumb">
        <li class="breadcrumb-item"><a href="{{ wzRoute('user:home') }}">@lang('common.home')</a></li>
        <li class="breadcrumb-item">系统管理</li>
        <li class="breadcrumb-item active">用户管理</li>
    </ol>
@endsection
@section('admin-content')

    <div class="card">
        <table class="table">
            <thead>
            <tr>
                <th>#</th>
                <th>真实姓名</th>
                <th>账号</th>
                <th>角色</th>
                <th>状态</th>
                <th>注册时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            @forelse($users as $user)
                <tr class="{{ $user->id == Auth::user()->id ? 'info' : '' }}">
                    <th scope="row">{{ $user->id }}</th>
                    <td>{{ $user->name }}</td>
                    <td>{{ $user->email }}</td>
                    <td>{{ $user->isAdmin() ? '管理员':'普通' }}</td>
                    <td>
                        @if($user->status == 0)
                            <span style="color: orangered;">未激活</span>
                        @elseif($user->status == 1)
                            <span style="color: green;">已激活</span>
                        @elseif($user->status == 2)
                            <span style="color: red;">已禁用</span>
                        @endif
                    </td>
                    <td>{{ $user->created_at->format('Y-m-d H:i') }}</td><commit_msg>增加用户管理中展示用户创建的项目<commit_after>@extends('layouts.admin')

@section('title', '用户管理')
@section('breadcrumb')
    <ol class="breadcrumb">
        <li class="breadcrumb-item"><a href="{{ wzRoute('user:home') }}">@lang('common.home')</a></li>
        <li class="breadcrumb-item">系统管理</li>
        <li class="breadcrumb-item active">用户管理</li>
    </ol>
@endsection
@section('admin-content')

    <div class="card">
        <table class="table">
            <thead>
            <tr>
                <th>#</th>
                <th>真实姓名</th>
                <th>账号</th>
                <th>角色</th>
                <th>状态</th>
                <th>注册时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            @forelse($users as $user)
                <tr class="{{ $user->id == Auth::user()->id ? 'info' : '' }}">
                    <th scope="row">{{ $user->id }}</th>
                    <td>{{ $user->name }}</td>
                    <td><a href="{{ wzRoute('admin:user', ['id' => $user->id]) }}">{{ $user->email }}</a></td>
                    <td>{{ $user->isAdmin() ? '管理员':'普通' }}</td>
                    <td>
                        @if($user->status == 0)
                            <span style="color: orangered;">未激活</span>
                        @elseif($user->status == 1)
                            <span style="color: green;">已激活</span>
                        @elseif($user->status == 2)
                            <span style="color: red;">已禁用</span>
                        @endif
                    </td>
                    <td>{{ $user->created_at->format('Y-m-d H:i') }}</td>
{'fraction_non_alphanumeric': 0.20504044803982577, 'fraction_numerical': 0.001866832607342875, 'mean_word_length': 1.2980700500357398, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 129, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5378715', 'n_tokens_mistral': 1073, 'n_tokens_neox': 1045, 'n_words': 161}