@extends('admin.layouts.app') @section('title', '节日福利管理') @section('content')
配置定时发放的节日金币福利,系统自动触发广播并分配红包。
| ID | 活动名称 | 奖池 | 分配方式 | 限额人数 | 触发时间 | 重复 | 状态 | 启用 | 操作 |
|---|---|---|---|---|---|---|---|---|---|
| {{ $event->id }} |
{{ $event->name }}
@if ($event->description)
{{ Str::limit($event->description, 40) }}
@endif
|
💰 {{ number_format($event->total_amount) }} | @if ($event->distribute_type === 'random') 随机 @else 定额 {{ number_format($event->fixed_amount) }} @endif | {{ $event->max_claimants === 0 ? '不限' : $event->max_claimants . ' 人' }} | {{ $event->send_at->format('m-d H:i') }} | @php $repeatLabels = [ 'once' => '一次', 'daily' => '每天', 'weekly' => '每周', 'monthly' => '每月', 'cron' => 'CRON', ]; @endphp {{ $repeatLabels[$event->repeat_type] ?? '-' }} | @php $statusMap = [ 'pending' => ['待触发', 'bg-yellow-100 text-yellow-700'], 'active' => ['领取中', 'bg-green-100 text-green-700'], 'completed' => ['已结束', 'bg-gray-100 text-gray-500'], 'cancelled' => ['已取消', 'bg-red-100 text-red-600'], ]; [$label, $cls] = $statusMap[$event->status] ?? [ '未知', 'bg-gray-100 text-gray-500', ]; @endphp {{ $label }} | {{-- 手动触发 --}} @if ($event->status === 'pending') @endif 编辑 | |
| 暂无节日福利活动,立即创建一个? | |||||||||