@extends('layouts.admin') @section('content') @php $theme = request()->cookie('theme', 'dark-blue'); $isLight = in_array($theme, ['light-blue', 'light-green']); $cardBg = $isLight ? 'bg-white' : 'bg-gray-800'; $textPrimary = $isLight ? 'text-gray-900' : 'text-gray-200'; $textSecondary = $isLight ? 'text-gray-600' : 'text-gray-400'; $borderColor = $isLight ? 'border-gray-200' : 'border-gray-700'; $thBg = $isLight ? 'bg-gray-50' : 'bg-gray-700'; $inputBg = $isLight ? 'bg-white' : 'bg-gray-700'; $inputBorder = $isLight ? 'border-gray-300' : 'border-gray-600'; $typeLabels = [ 'points' => '點數', 'coupon' => '優惠券', 'product' => '商品', 'discount' => '折扣', 'cash' => '現金', ]; $triggerLabels = [ 'register' => '註冊', 'birthday' => '生日', 'annual' => '年度', 'upgrade' => '升級', 'manual' => '手動', ]; @endphp {{-- Toast 通知 --}} @if(session('success'))
{{ session('success') }}
@endif

禮品設定

@forelse($gifts as $gift) @empty @endforelse
名稱 類型 數值 適用等級 觸發條件 狀態 操作
{{ $gift->name }} {{ $typeLabels[$gift->type] ?? $gift->type }} {{ $gift->value }} {{ $gift->tier?->name ?? '全部' }} {{ $triggerLabels[$gift->trigger] ?? $gift->trigger }} @if($gift->is_active) 啟用 @else 停用 @endif
@csrf @method('DELETE')
尚無資料
{{-- Create Modal --}} @endsection