- 取貨碼沿用「商品版」綁定(product_id,相容舊 slot_no)批次產碼 - 通行碼批次產碼;名稱自動加 #1..#N 流水 - 新增 batch_no 欄位標記同一批,提供批次下載路由與 UTF-8 BOM CSV - 數量>1 時忽略自訂碼、系統產生不重複隨機碼;單筆行為不變 - 產生後顯示可重複下載清單橫幅;新增 zh_TW/en/ja 翻譯鍵 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
28 lines
1.6 KiB
PHP
28 lines
1.6 KiB
PHP
@if(session('code_batch'))
|
|
@php($batch = session('code_batch'))
|
|
<div class="luxury-card rounded-3xl p-6 border border-emerald-500/30 bg-emerald-500/5 flex flex-col sm:flex-row sm:items-center gap-4 animate-luxury-in">
|
|
<div class="flex items-center gap-3 flex-1">
|
|
<div class="w-11 h-11 rounded-2xl bg-emerald-500/15 text-emerald-500 flex items-center justify-center shrink-0">
|
|
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7" />
|
|
</svg>
|
|
</div>
|
|
<div>
|
|
<p class="text-sm font-black text-slate-800 dark:text-white">{{ __('Batch generated successfully') }}</p>
|
|
<p class="text-xs font-bold text-slate-500">
|
|
{{ __('Batch No') }}: <span class="font-mono text-cyan-600 dark:text-cyan-400">{{ $batch['batch_no'] }}</span>
|
|
· {{ $batch['count'] }} {{ __('codes') }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<a href="{{ $batch['download_url'] }}"
|
|
class="btn-luxury-primary whitespace-nowrap flex items-center justify-center gap-2">
|
|
<svg class="w-4 h-4 stroke-[2.5]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round"
|
|
d="M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M7.5 12l4.5 4.5m0 0l4.5-4.5M12 3v13.5" />
|
|
</svg>
|
|
{{ __('Download List (CSV)') }}
|
|
</a>
|
|
</div>
|
|
@endif
|