升级节日福利年度调度与批次领取

This commit is contained in:
2026-04-21 17:53:11 +08:00
parent 5a6446b832
commit a066580014
25 changed files with 2362 additions and 536 deletions
@@ -8,7 +8,7 @@
<div class="bg-white rounded-xl shadow-sm border border-gray-100 p-6 flex justify-between items-center">
<div>
<h2 class="text-lg font-bold text-gray-800">🎊 节日福利管理</h2>
<p class="text-xs text-gray-500 mt-1">配置定时发放的节日金币福利,系统自动触发广播并分配红包。</p>
<p class="text-xs text-gray-500 mt-1">配置一次性、周期性与年度节日福利,系统自动触发广播并分配红包。</p>
</div>
<a href="{{ route('admin.holiday-events.create') }}"
class="px-5 py-2 bg-amber-500 text-white rounded-lg font-bold hover:bg-amber-600 transition text-sm shadow-sm">
@@ -62,6 +62,14 @@
</td>
<td class="p-3 text-gray-600 text-xs">
{{ $event->send_at->format('m-d H:i') }}
@if ($event->repeat_type === 'yearly')
<div class="mt-1 text-[11px] text-amber-600">
{{ data_get($event, 'schedule_month', $event->send_at?->format('n')) }}{{ data_get($event, 'schedule_day', $event->send_at?->format('j')) }}
· {{ data_get($event, 'duration_days', 1) }}
· 每天{{ data_get($event, 'daily_occurrences', 1) }}
· 间隔{{ data_get($event, 'occurrence_interval_minutes', 60) }}分钟
</div>
@endif
</td>
<td class="p-3">
@php
@@ -70,6 +78,7 @@
'daily' => '每天',
'weekly' => '每周',
'monthly' => '每月',
'yearly' => '每年',
'cron' => 'CRON',
];
@endphp