From e69bceeb7764d1ec059c83701a5f2a45bbca2c03 Mon Sep 17 00:00:00 2001 From: lkddi Date: Sun, 26 Apr 2026 18:24:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=94=A8=E6=88=B7=E6=B5=81?= =?UTF-8?q?=E6=B0=B4=E7=AD=9B=E9=80=89=E5=B9=B6=E7=BB=9F=E4=B8=80=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E4=B8=AD=E6=96=87=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/admin/currency-logs/index.blade.php | 204 +++++++++++------- .../pagination/simple-tailwind.blade.php | 27 +++ .../vendor/pagination/tailwind.blade.php | 128 +++++++++++ 3 files changed, 276 insertions(+), 83 deletions(-) create mode 100644 resources/views/vendor/pagination/simple-tailwind.blade.php create mode 100644 resources/views/vendor/pagination/tailwind.blade.php diff --git a/resources/views/admin/currency-logs/index.blade.php b/resources/views/admin/currency-logs/index.blade.php index 10a5d4d..96be1b6 100644 --- a/resources/views/admin/currency-logs/index.blade.php +++ b/resources/views/admin/currency-logs/index.blade.php @@ -4,50 +4,48 @@ @section('content') @php + require resource_path('views/admin/partials/list-theme.php'); $selectedSourceCount = count($selectedSources ?? []); @endphp - -
-
- - -
- +
+
+ +
+ -
+
- -
- +
+ -
+
- -
- +
+ -
+
- -
- -
+
+ +
+ class="{{ $adminListFilterInputClass }} flex cursor-pointer list-none items-center justify-between bg-white"> {{ $selectedSourceCount > 0 ? '已选 '.$selectedSourceCount.' 项' : '全部来源' }} @@ -55,7 +53,7 @@ -
+
@foreach ($allSources as $src)
-
-
+
+
- -
- +
+ -
+
- -
- +
+ -
+ class="w-full {{ $adminListFilterInputClass }}" data-auto-submit="change"> +
- -
- +
+ -
+ class="w-full {{ $adminListFilterInputClass }}" data-auto-submit="change"> +
- -
- - + - + +
+ +
- -
-
- +
+
+
- - - - - - - - - + + + + + + + + + - + @forelse ($logs as $log) - - + - - - - @empty - @@ -195,7 +183,7 @@
记录ID用户类型变动数额变后余额来源备注信息发生时间
记录ID用户类型变动数额变后余额来源备注信息发生时间
+
#{{ $log->id }}
- {{ $log->username }} + {{ $log->username }}
@if($log->currency === 'gold') - + 💰金币 @elseif($log->currency === 'exp') - + 经验 @elseif($log->currency === 'charm') - + 💖魅力 @else - {{ $log->currency }} + {{ $log->currency }} @endif + @if ($log->amount > 0) +{{ $log->amount }} @elseif ($log->amount === 0) @@ -166,27 +154,27 @@ {{ $log->amount }} @endif + {{ $log->balance_after }} @php $sourceLabel = \App\Enums\CurrencySource::tryFrom($log->source)?->label() ?? $log->source; @endphp - + {{ $sourceLabel }} + {{ $log->remark }} + {{ $log->created_at->format('Y-m-d H:i:s') }}
+ 📭 暂无相关流水记录
@if ($logs->hasPages()) -
+
{{ $logs->links() }}
@endif @@ -203,12 +191,62 @@