@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; @endphp

📦 神秘箱子历史记录

查询所有投放过的神秘箱子记录,含领取情况。

⚙️ 游戏配置
{{ number_format($summary['total_dropped']) }}
历史总投放数
{{ number_format($summary['total_claimed']) }}
已被领取
{{ number_format($summary['total_expired']) }}
已过期/未领取
类型分布
📦 普通箱 {{ $summary['type_dist']['normal'] ?? 0 }}
💎 稀有箱 {{ $summary['type_dist']['rare'] ?? 0 }}
☠️ 黑化箱 {{ $summary['type_dist']['trap'] ?? 0 }}
重置
箱子列表
统一列表容器与分页层级,保留箱子类型、状态和奖励色彩语义。
@forelse ($boxes as $box) @php $typeInfo = match ($box->box_type) { 'normal' => ['label' => '📦 普通箱', 'color' => 'bg-emerald-100 text-emerald-700 border-emerald-200'], 'rare' => ['label' => '💎 稀有箱', 'color' => 'bg-purple-100 text-purple-700 border-purple-200'], 'trap' => ['label' => '☠️ 黑化箱', 'color' => 'bg-red-100 text-red-700 border-red-200'], default => ['label' => '📦 未知', 'color' => 'bg-gray-100 text-gray-600 border-gray-200'], }; $statusInfo = match ($box->status) { 'open' => ['label' => '等待领取', 'color' => 'bg-blue-100 text-blue-700 border-blue-200'], 'claimed' => ['label' => '✅ 已领取', 'color' => 'bg-emerald-100 text-emerald-700 border-emerald-200'], 'expired' => ['label' => '⏰ 已过期', 'color' => 'bg-gray-100 text-gray-500 border-gray-200'], default => ['label' => $box->status, 'color' => 'bg-gray-100 text-gray-500 border-gray-200'], }; $claim = $box->claim; @endphp @empty @endforelse
投放时间 类型 奖励范围 暗号 状态 领取者 实际奖励 领取时间
{{ $box->created_at->format('m-d H:i:s') }} {{ $typeInfo['label'] }} {{ number_format($box->reward_min) }} ~ {{ number_format($box->reward_max) }} {{ $box->passcode ?? '—' }} {{ $statusInfo['label'] }} {{ $claim?->user?->username ?? '—' }} @if ($claim) {{ $claim->reward_amount > 0 ? '+' : '' }}{{ number_format($claim->reward_amount) }} @else @endif {{ $claim?->created_at?->format('m-d H:i:s') ?? '—' }}
暂无记录
@if ($boxes->hasPages())
{{ $boxes->links() }}
@endif
@endsection