@php
    $prefix = $prefix ?? '';
@endphp

<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
    <div>
        <label class="block text-xs font-bold text-gray-600 mb-1">连续天数</label>
        <input type="number" id="{{ $prefix }}streak_days" name="streak_days" min="1" required
            value="{{ old('streak_days') }}"
            class="w-full border border-gray-300 rounded-lg p-2 text-sm focus:border-indigo-400">
    </div>
    <div>
        <label class="block text-xs font-bold text-gray-600 mb-1">金币奖励</label>
        <input type="number" id="{{ $prefix }}gold_reward" name="gold_reward" min="0" required
            value="{{ old('gold_reward', 0) }}"
            class="w-full border border-gray-300 rounded-lg p-2 text-sm focus:border-indigo-400">
    </div>
    <div>
        <label class="block text-xs font-bold text-gray-600 mb-1">经验奖励</label>
        <input type="number" id="{{ $prefix }}exp_reward" name="exp_reward" min="0" required
            value="{{ old('exp_reward', 0) }}"
            class="w-full border border-gray-300 rounded-lg p-2 text-sm focus:border-indigo-400">
    </div>
    <div>
        <label class="block text-xs font-bold text-gray-600 mb-1">魅力奖励</label>
        <input type="number" id="{{ $prefix }}charm_reward" name="charm_reward" min="0" required
            value="{{ old('charm_reward', 0) }}"
            class="w-full border border-gray-300 rounded-lg p-2 text-sm focus:border-indigo-400">
    </div>
    <div>
        <label class="block text-xs font-bold text-gray-600 mb-1">身份编码</label>
        <input type="text" id="{{ $prefix }}identity_badge_code" name="identity_badge_code"
            value="{{ old('identity_badge_code') }}" placeholder="sign_in_7"
            class="w-full border border-gray-300 rounded-lg p-2 text-sm focus:border-indigo-400">
    </div>
    <div>
        <label class="block text-xs font-bold text-gray-600 mb-1">身份名称</label>
        <input type="text" id="{{ $prefix }}identity_badge_name" name="identity_badge_name"
            value="{{ old('identity_badge_name') }}" placeholder="七日星辉"
            class="w-full border border-gray-300 rounded-lg p-2 text-sm focus:border-indigo-400">
    </div>
    <div>
        <label class="block text-xs font-bold text-gray-600 mb-1">身份图标</label>
        <input type="text" id="{{ $prefix }}identity_badge_icon" name="identity_badge_icon"
            value="{{ old('identity_badge_icon') }}" placeholder="🔥"
            class="w-full border border-gray-300 rounded-lg p-2 text-sm focus:border-indigo-400">
    </div>
    <div>
        <label class="block text-xs font-bold text-gray-600 mb-1">身份颜色</label>
        <input type="text" id="{{ $prefix }}identity_badge_color" name="identity_badge_color"
            value="{{ old('identity_badge_color', '#0f766e') }}" placeholder="#0f766e"
            class="w-full border border-gray-300 rounded-lg p-2 text-sm focus:border-indigo-400">
    </div>
    <div>
        <label class="block text-xs font-bold text-gray-600 mb-1">身份有效天数</label>
        <input type="number" id="{{ $prefix }}identity_duration_days" name="identity_duration_days" min="0"
            value="{{ old('identity_duration_days', 0) }}" required
            class="w-full border border-gray-300 rounded-lg p-2 text-sm focus:border-indigo-400">
    </div>
    <div>
        <label class="block text-xs font-bold text-gray-600 mb-1">排序</label>
        <input type="number" id="{{ $prefix }}sort_order" name="sort_order" min="0"
            value="{{ old('sort_order', 0) }}" required
            class="w-full border border-gray-300 rounded-lg p-2 text-sm focus:border-indigo-400">
    </div>
</div>
