@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.relief.onSetting')}}" method="post">
                {{csrf_field()}}
                {{method_field('put')}}
                <input type="hidden" name="systemconfig_id" value="{{$data['systemconfig_id']}}">
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">领取条件：</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="condition" value="{{ $data['condition']??'' }}" lay-verify="required" placeholder="请输入金额" class="layui-input" >
                        <span style="line-height: 2.5; margin-left: 5px">可领取</span>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">领取次数：</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="count" value="{{ $data['count']??'' }}" lay-verify="required" placeholder="请输入金额" class="layui-input" >
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">领取金额：</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="mony" value="{{ $data['mony']??'' }}" lay-verify="required" placeholder="请输入金额" class="layui-input" >
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">启用：</label>
                    <div class="layui-input-block" style="width: 100px;">
                        <select name="systemconfig_status" lay-verify="required">
                            <option value=""></option>
                            <option value="1" {{$data['systemconfig_status']==1?'selected': ''}}>启用</option>
                            <option value="2" {{$data['systemconfig_status']==2?'selected': ''}}>停用</option>
                        </select>
                    </div>
                </div>
                <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
