From 00270b3904bff5cfbecf7e1cf825a422f830dd26 Mon Sep 17 00:00:00 2001 From: lkddi Date: Sun, 26 Apr 2026 18:10:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E5=90=8E=E5=8F=B0=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=A1=B5=E6=A0=B7=E5=BC=8F=E5=B9=B6=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E7=AB=99=E9=95=BF=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/admin/ai-providers/index.blade.php | 46 +-- .../appointments/authority-logs.blade.php | 102 ++++--- .../admin/appointments/duty-logs.blade.php | 111 +++---- .../admin/appointments/history.blade.php | 107 ++++--- .../views/admin/appointments/index.blade.php | 119 ++++---- .../admin/appointments/my-duty-logs.blade.php | 163 ++++++----- resources/views/admin/autoact/index.blade.php | 99 ++++--- .../views/admin/changelog/index.blade.php | 180 ++++++------ .../admin/currency-stats/index.blade.php | 83 +++--- .../views/admin/feedback/index.blade.php | 55 ++-- resources/views/admin/fishing/index.blade.php | 128 +++++---- .../admin/forbidden-usernames/index.blade.php | 245 ++++++++-------- .../game-history/baccarat-round.blade.php | 167 +++++------ .../admin/game-history/baccarat.blade.php | 216 +++++++------- .../admin/game-history/fortune.blade.php | 243 ++++++++-------- .../views/admin/game-history/gomoku.blade.php | 188 ++++++------ .../admin/game-history/horse-race.blade.php | 170 +++++------ .../views/admin/game-history/horse.blade.php | 175 ++++++------ .../game-history/lottery-issue.blade.php | 182 ++++++------ .../admin/game-history/lottery.blade.php | 169 +++++------ .../admin/game-history/mystery-box.blade.php | 258 ++++++++--------- .../views/admin/game-history/slot.blade.php | 270 +++++++++--------- .../admin/holiday-events/index.blade.php | 56 ++-- resources/views/admin/layouts/app.blade.php | 24 +- .../admin/marriages/ceremonies.blade.php | 175 ++++++------ .../admin/marriages/claim-detail.blade.php | 135 +++++---- .../admin/marriages/intimacy-logs.blade.php | 167 ++++++----- .../views/admin/marriages/list.blade.php | 221 +++++++------- .../views/admin/marriages/proposals.blade.php | 136 +++++---- resources/views/admin/partials/list-theme.php | 31 ++ .../views/admin/positions/index.blade.php | 74 +++-- resources/views/admin/shop/index.blade.php | 62 ++-- .../views/admin/sign-in-rules/index.blade.php | 88 +++--- .../admin/vip-payment-logs/index.blade.php | 163 ++++++----- resources/views/admin/vip/members.blade.php | 95 +++--- .../Feature/AdminDashboardControllerTest.php | 32 +++ 36 files changed, 2590 insertions(+), 2345 deletions(-) create mode 100644 resources/views/admin/partials/list-theme.php diff --git a/resources/views/admin/ai-providers/index.blade.php b/resources/views/admin/ai-providers/index.blade.php index 6ee2360..1ed3d3f 100644 --- a/resources/views/admin/ai-providers/index.blade.php +++ b/resources/views/admin/ai-providers/index.blade.php @@ -16,6 +16,7 @@ @section('title', 'AI 厂商配置') @section('content') + @php require resource_path('views/admin/partials/list-theme.php'); @endphp
{{-- 全局开关 + 高级设置 --}} -
+
-

🤖 AI 聊天机器人配置

+

🤖 AI 聊天机器人配置

大厅状态:
-
@@ -145,26 +145,26 @@
{{-- 厂商列表 --}} -
- - +
+
+ - - - - - - - - + + + + + + + + - + @forelse ($providers as $provider) - + @empty - diff --git a/resources/views/admin/appointments/authority-logs.blade.php b/resources/views/admin/appointments/authority-logs.blade.php index 5fddd9c..516bbb5 100644 --- a/resources/views/admin/appointments/authority-logs.blade.php +++ b/resources/views/admin/appointments/authority-logs.blade.php @@ -11,13 +11,18 @@ @section('title', '权限操作日志 · ' . $userPosition->user->username) @section('content') -
- ← 返回任命管理 -

- {{ $userPosition->position->icon }} {{ $userPosition->user->username }} · {{ $userPosition->position->name }} -

-

权限操作记录(共 {{ $logs->total() }} 条)

-
+ @php require resource_path('views/admin/partials/list-theme.php'); @endphp + +
+
+
+ ← 返回任命管理 +

+ {{ $userPosition->position->icon }} {{ $userPosition->user->username }} · {{ $userPosition->position->name }} +

+

权限操作记录(共 {{ $logs->total() }} 条)

+
+
@php $actionColors = [ @@ -32,42 +37,51 @@ ]; @endphp -
-
厂商模型API 端点参数排序状态默认操作厂商模型API 端点参数排序状态默认操作
-
{{ $provider->name }}
-
{{ $provider->provider }}
+
{{ $provider->name }}
+
{{ $provider->provider }}
{{ $provider->model }} @@ -202,22 +202,22 @@
+ class="{{ $adminListActionButtonClass }} text-teal-600 hover:text-teal-800 hover:bg-teal-50">⚡ 测试 + class="{{ $adminListActionButtonClass }} text-indigo-600 hover:text-indigo-800 hover:bg-indigo-50">编辑
@csrf @method('DELETE') + class="{{ $adminListActionButtonClass }} text-red-500 hover:text-red-700 hover:bg-red-50">删除
+ 暂无 AI 厂商配置,请点击上方"添加 AI 厂商"按钮。
- - - - - - - - - - - - @forelse ($logs as $log) - @php $colorClass = $actionColors[$log->action_type] ?? 'bg-gray-100 text-gray-600'; @endphp - - - - - - - - - @empty - - - - @endforelse - -
操作时间操作类型操作对象目标职务奖励金额备注
{{ $log->created_at->format('m-d H:i:s') }} - - {{ $log->action_label }} - - {{ $log->targetUser->username ?? '—' }}{{ $log->targetPosition?->name ?? '—' }} - {{ $log->amount ? number_format($log->amount) . ' 金币' : '—' }} - {{ $log->remark ?? '—' }}
暂无权限操作记录
+
+
+

权限操作日志

+

覆盖任命周期内的任命、撤销、奖励、警告、踢出、禁言等权限动作。

+
+
+ + + + + + + + + + + + + @forelse ($logs as $log) + @php $colorClass = $actionColors[$log->action_type] ?? 'bg-gray-100 text-gray-600'; @endphp + + + + + + + + + @empty + + + + @endforelse + +
操作时间操作类型操作对象目标职务奖励金额备注
{{ $log->created_at->format('m-d H:i:s') }} + + {{ $log->action_label }} + + {{ $log->targetUser->username ?? '—' }}{{ $log->targetPosition?->name ?? '—' }} + {{ $log->amount ? number_format($log->amount) . ' 金币' : '—' }} + {{ $log->remark ?? '—' }}
暂无权限操作记录
+
+ @if ($logs->hasPages()) +
{{ $logs->links() }}
+ @endif +
-
{{ $logs->links() }}
@endsection diff --git a/resources/views/admin/appointments/duty-logs.blade.php b/resources/views/admin/appointments/duty-logs.blade.php index 1d372be..bcbe020 100644 --- a/resources/views/admin/appointments/duty-logs.blade.php +++ b/resources/views/admin/appointments/duty-logs.blade.php @@ -11,70 +11,81 @@ @section('title', '在职登录日志 · ' . $userPosition->user->username) @section('content') -
- ← 返回任命管理 -

- {{ $userPosition->position->icon }} {{ $userPosition->user->username }} · {{ $userPosition->position->name }} -

-

- 任命于 {{ $userPosition->appointed_at->format('Y-m-d') }}, - 任命人:{{ $userPosition->appointedBy?->username ?? '系统' }} -

-
+ @php require resource_path('views/admin/partials/list-theme.php'); @endphp + +
+
+
+ ← 返回任命管理 +

+ {{ $userPosition->position->icon }} {{ $userPosition->user->username }} · {{ $userPosition->position->name }} +

+

+ 任命于 {{ $userPosition->appointed_at->format('Y-m-d') }},任命人:{{ $userPosition->appointedBy?->username ?? '系统' }} +

+
+
{{-- 统计摘要 --}} -
-
+
+
{{ $logs->total() }}
总登录次数
-
+
{{ intdiv($totalSeconds, 3600) }}h {{ intdiv($totalSeconds % 3600, 60) }}m
累计在线时长(所有)
-
+
{{ $userPosition->total_rewarded_coins }}
在职期间发放金币
-
- - - - - - - - - - - - @forelse ($logs as $log) - - - - - - - - @empty - - - - @endforelse - -
登录时间退出时间在线时长房间IP 地址
{{ $log->login_at->format('m-d H:i:s') }}{{ $log->logout_at?->format('m-d H:i:s') ?? '在线中...' }} - @if ($log->duration_seconds) - {{ $log->formatted_duration }} - @else - - @endif - {{ $log->room_id ? "房间#{$log->room_id}" : '—' }} - {{ $log->ip_address }}
暂无登录记录
+
+
+

在职登录记录

+

记录该任职周期内的登录、退出、在线时长与所在房间信息。

+
+
+ + + + + + + + + + + + @forelse ($logs as $log) + + + + + + + + @empty + + + + @endforelse + +
登录时间退出时间在线时长房间IP 地址
{{ $log->login_at->format('m-d H:i:s') }}{{ $log->logout_at?->format('m-d H:i:s') ?? '在线中...' }} + @if ($log->duration_seconds) + {{ $log->formatted_duration }} + @else + + @endif + {{ $log->room_id ? "房间#{$log->room_id}" : '—' }}{{ $log->ip_address }}
暂无登录记录
+
+ @if ($logs->hasPages()) +
{{ $logs->links() }}
+ @endif +
-
{{ $logs->links() }}
@endsection diff --git a/resources/views/admin/appointments/history.blade.php b/resources/views/admin/appointments/history.blade.php index e48deac..fc160d6 100644 --- a/resources/views/admin/appointments/history.blade.php +++ b/resources/views/admin/appointments/history.blade.php @@ -11,52 +11,67 @@ @section('title', '历史任职记录') @section('content') -
- ← 返回任命管理 -

历史任职记录

-

已撤销的职务记录(共 {{ $history->total() }} 条)

-
+ @php require resource_path('views/admin/partials/list-theme.php'); @endphp -
- - - - - - - - - - - - - - @forelse ($history as $up) - - - - - - - - - - @empty - - - - @endforelse - -
用户职务任命人任命时间撤销人撤销时间在职天数
{{ $up->user->username }} - {{ $up->position->icon }} - {{ $up->position->name }} - {{ $up->position->department->name }} - {{ $up->appointedBy?->username ?? '系统' }}{{ $up->appointed_at->format('Y-m-d') }} - {{ $up->revokedBy?->username ?? '系统' }} - {{ $up->revoked_at?->format('Y-m-d') ?? '—' }} - {{ $up->duration_days }} - 天 -
暂无历史记录
+
+
+
+
+ ← 返回任命管理 +

历史任职记录

+

已撤销的职务记录(共 {{ $history->total() }} 条)

+
+
+
+ +
+
+

任职历史列表

+

按撤销后的记录保留完整的任命与撤销链路,便于审计追踪。

+
+
+ + + + + + + + + + + + + + @forelse ($history as $up) + + + + + + + + + + @empty + + + + @endforelse + +
用户职务任命人任命时间撤销人撤销时间在职天数
{{ $up->user->username }} +
+ {{ $up->position->icon }} + {{ $up->position->name }} + {{ $up->position->department->name }} +
+
{{ $up->appointedBy?->username ?? '系统' }}{{ $up->appointed_at->format('Y-m-d') }}{{ $up->revokedBy?->username ?? '系统' }}{{ $up->revoked_at?->format('Y-m-d') ?? '—' }} + {{ $up->duration_days }} 天 +
暂无历史记录
+
+ @if ($history->hasPages()) +
{{ $history->links() }}
+ @endif +
-
{{ $history->links() }}
@endsection diff --git a/resources/views/admin/appointments/index.blade.php b/resources/views/admin/appointments/index.blade.php index 73eef40..161f8b1 100644 --- a/resources/views/admin/appointments/index.blade.php +++ b/resources/views/admin/appointments/index.blade.php @@ -12,6 +12,8 @@ @section('title', '任命管理') @section('content') + @php require resource_path('views/admin/partials/list-theme.php'); @endphp +
+
{{-- 头部 --}} -
-
-

任命管理

-

管理当前所有在职职位人员,执行任命或撤销操作

-
-
+
+
+
+

任命管理

+

管理当前所有在职职位人员,执行任命或撤销操作

+
+
+ class="{{ $adminListSecondaryButtonClass }} inline-flex items-center justify-center"> 历史记录
+
{{-- 在职人员列表 --}} -
- - - - - - - - - - +
+
+

在职人员列表

+

展示当前所有已任命且仍在职的人员,可直接查看履职日志或执行撤销。

+
+
+
用户部门·职务等级任命人任命时间在职天数操作
+ + + + + + + + + - + @forelse ($activePositions as $up) - + - - + - @empty - + @endforelse
用户部门·职务等级任命人任命时间在职天数操作
-
{{ $up->user->username }}
-
Lv.{{ $up->user->user_level }}
+
{{ $up->user->username }}
+
Lv.{{ $up->user->user_level }}
{{ $up->position->icon }}
-
{{ $up->position->department->name }}
-
+
{{ $up->position->department->name }}
+
{{ $up->position->name }}
- + Lv.{{ $up->position->level }} {{ $up->appointedBy?->username ?? '系统' }} + {{ $up->appointedBy?->username ?? '系统' }} {{ $up->appointed_at->format('Y-m-d') }} - + {{ $up->duration_days }} 天 + +
暂无在职人员暂无在职人员
+
{{-- 新增任命弹窗 --}}