@extends('admin.base')

@section('content')
    <div class="layui-card">
        <div class="layui-card-header layuiadmin-card-header-auto">
            <h2>签到配置</h2>
        </div>
        <div class="layui-card-body">
            <form class="layui-form" action="{{route('admin.sign.onSetting')}}" method="post">
                {{csrf_field()}}
                {{method_field('put')}}
                <div class="layui-card-header layuiadmin-card-header-auto">
                    <h3>七日奖励</h3>
                </div>
                @foreach($getDayConfig as $v)
                    <div class="layui-form-item">
                        <label for="" class="layui-form-label">{{ $v['sign_name'] }}：</label>
                        <div class="layui-input-block" style="display: flex">
                            <span style="line-height: 2.5;">金币数量</span>
                            <input style="width: 70px; text-align: right; padding-right: 10px; margin-left: 5px" type="text" name="{{ $v['sign_title']??'' }}" value="{{ $v['sign_data']??'' }}" lay-verify="required" placeholder="请输入金额" class="layui-input" >
                        </div>
                    </div>
                @endforeach

                <div class="layui-card-header layuiadmin-card-header-auto">
                    <h3>累积奖励</h3>
                </div>
                @foreach($getMonthConfig as $v)
                    <div class="layui-form-item">
                        <label for="" class="layui-form-label">{{ $v['sign_name'] }}：</label>
                        <div class="layui-input-block" style="display: flex">
                            <span style="line-height: 2.5;">金币数量</span>
                            <input style="width: 70px; text-align: right; padding-right: 10px; margin-left: 5px" type="text" name="{{ $v['sign_title']??'' }}" value="{{ $v['sign_data']??'' }}" lay-verify="required" placeholder="请输入金额" class="layui-input" >
                        </div>
                    </div>
                @endforeach

                <div class="layui-form-item" style="margin-top: 50px;">
                    <div class="layui-input-block">
                        <button type="submit" class="layui-btn" lay-submit="" lay-filter="formDemo">确 认</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection
