@extends('admin.layouts.app') @section('title', '神秘占卜历史记录') @section('content') @php require resource_path('views/admin/partials/list-theme.php'); @endphp @php $tableCellClass = 'px-4 py-3'; $badgeClass = $adminListBadgeBaseClass; $gradeAll = [ 'jackpot' => ['label' => '上上签', 'color' => 'text-amber-600'], 'good' => ['label' => '上签', 'color' => 'text-emerald-600'], 'normal' => ['label' => '中签', 'color' => 'text-gray-500'], 'bad' => ['label' => '下签', 'color' => 'text-orange-500'], 'curse' => ['label' => '大凶签', 'color' => 'text-red-600'], ]; @endphp

🔮 神秘占卜历史记录

查询所有玩家的占卜记录,支持按等级和玩家名筛选。

⚙️ 游戏配置
{{ number_format($summary['total_times']) }}
历史总占卜次
{{ number_format($summary['grade_dist']['jackpot'] ?? 0) }}
✨ 上上签次数
{{ number_format($summary['grade_dist']['curse'] ?? 0) }}
💀 大凶签次数
签文分布
@foreach ($gradeAll as $key => $meta)
{{ $meta['label'] }} {{ $summary['grade_dist'][$key] ?? 0 }}
@endforeach
重置
占卜记录
统一表格与筛选层级,保留签文等级、免费状态和消耗配色。
@forelse ($logs as $log) @php $gradeInfo = match ($log->grade) { 'jackpot' => ['label' => '✨ 上上签', 'color' => 'bg-amber-100 text-amber-700 border-amber-200'], 'good' => ['label' => '🌸 上签', 'color' => 'bg-emerald-100 text-emerald-700 border-emerald-200'], 'normal' => ['label' => '📜 中签', 'color' => 'bg-gray-100 text-gray-600 border-gray-200'], 'bad' => ['label' => '😞 下签', 'color' => 'bg-orange-100 text-orange-700 border-orange-200'], 'curse' => ['label' => '💀 大凶签', 'color' => 'bg-red-100 text-red-700 border-red-200'], default => ['label' => $log->grade, 'color' => 'bg-gray-100 text-gray-500 border-gray-200'], }; @endphp @empty @endforelse
时间 玩家 签文等级 签文内容 加成/减益 是否免费 消耗金币
{{ $log->created_at->format('m-d H:i') }} {{ $log->user?->username ?? '已注销' }} {{ $gradeInfo['label'] }} {{ \Illuminate\Support\Str::limit($log->text, 50) }} {{ $log->buff_desc ?? '—' }} @if ($log->is_free) 免费 @else 付费 @endif {{ $log->cost > 0 ? '-' . number_format($log->cost) : '0' }}
暂无记录
@if ($logs->hasPages())
{{ $logs->links() }}
@endif
@endsection