<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta name="renderer" content="ie-comp">
    <meta name="renderer" content="ie-stand">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>基础设置</title>
    <link rel="stylesheet" href="{{ asset('frame/layui/css/layui.css') }}" media="all">

    <link href={{ asset("baidu/themes/default/css/umeditor.css") }} type="text/css" rel="stylesheet">


    <style>
        body {
            margin: 10px;
        }

        .layui-form-label {
            width: 150px;
        }

        .layui-input-block {
            margin-left: 180px;
        }
    </style>
</head>
<body>


<div class="layui-collapse" lay-filter="test" lay-accordion="">
    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$notice['infotype']}}">滚动公告设置[8]</h2>
        <div class="layui-colla-content layui-show">
            <form class="layui-form" action="">
                <input type="hidden" name="type" value="{{$notice['infotype']}}">
                <input type="hidden" name="infoname" value="{{$notice['infoname']?$notice['infoname']:'滚动公告设置'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">公告</label>

                    <div class="layui-input-block">
                <textarea name="infocontent" id="LAY_demo_editor"
                 style="width:1000px;height:240px;" lay-verify="infocontent">{{isset($notice['infocontent'])?$notice['infocontent']:''}}</textarea>
                    </div>

                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">手机端跳转网址</label>
                    <div class="layui-input-inline">
                        <input type="text" name="extinfo" lay-verify="extinfo" style="width: 300px;" autocomplete="off"
                               placeholder="请输入手机端跳转网址!"
                               class="layui-input" value="{{isset($notice['extinfo'])?$notice['extinfo']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">电脑端跳转网址</label>
                    <div class="layui-input-inline">
                        <input type="text" name="remarks" lay-verify="remarks" style="width: 300px;" autocomplete="off"
                               placeholder="请输入电脑端跳转网址！"
                               class="layui-input" value="{{isset($notice['remarks'])?$notice['remarks']:''}}">
                    </div>
                </div>
            </form>
        </div>
    </div>

   <!--  <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$tan_box['infotype']}}">PC弹窗设置[6]</h2>
        <div class="layui-colla-content">

            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1001">
                <input type="hidden" name="type" value="{{$tan_box['infotype']}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">弹窗内容</label>
                    <input type="hidden" name="infoname" value="{{$tan_box['infoname']?$tan_box['infoname']:'弹窗内容'}}">
                    <div class="layui-input-block">
                        <textarea name="infocontent" id="LAY_demo_editors"
                                  style="width:1000px;height:240px;">{{isset($tan_box['infocontent'])?$tan_box['infocontent']:''}}</textarea>
                    </div>
                </div>
                <div class="layui-form-item" id="showimg">
                    <label class="layui-form-label">图片地址:</label>
                    <div class="layui-input-block">
                        <input type="text" name="remarks" style="width:600px;"  class="layui-input" value={{$tan_box['remarks']}}>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">电脑端显示</label>
                    <div class="layui-input-block">
                        <input type="radio" name="pctype" eventType="event-query" value="1" title="pc文字"
                               @if(isset($tan_box['extinfo'][0]) && $tan_box['extinfo'][0]==1) checked @endif >
                        <input type="radio" name="pctype" eventType="event-query" value="2" title="pc图片"
                               @if(isset($tan_box['extinfo'][0]) && $tan_box['extinfo'][0]==2) checked @endif>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">手机端显示</label>
                    <div class="layui-input-block">
                        <input type="radio" name="mobiletype" eventType="event-query" value="1" title="手机文字"
                              @if(isset($tan_box['extinfo'][1]) && $tan_box['extinfo'][1]==1) checked @endif >
                        <input type="radio" name="mobiletype" eventType="event-query" value="2" title="手机图片"
                               @if(isset($tan_box['extinfo'][1]) && $tan_box['extinfo'][1]==2) checked @endif>
                    </div>
                </div>


                    <div class="layui-form-item">
                        <label class="layui-form-label">是否开启弹窗</label>
                        <div class="layui-input-block">
                            <input type="radio" name="status" eventType="event-query" value="1" title="启用"
                                   @if($tan_box['status']==1) checked @endif>
                            <input type="radio" name="status" eventType="event-query" value="0" title="关闭"
                                   @if($tan_box['status']==0) checked @endif>
                        </div>
                    </div>
            </form>

        </div>
    </div> -->

    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$startup['infotype']}}">APP启动图设置<span
                    style="font-size: 10px;">[38/id-1111]</span></h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1111">
                <input type="hidden" name="type" value="{{$startup['infotype']?$startup['infotype']:1111}}">
                <input type="hidden" name="infoname" value="{{$startup['infoname']?$startup['infoname']:'APP启动图设置'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">图片路径</label>
                    <div class="layui-input-block">
                        <input type="text" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input" value="{{$startup['infocontent']}}">
                    </div>
                </div>
            </form>
        </div>
    </div>
    
    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$fsnum['infotype']}}">反水赔率<span
                    style="font-size: 10px;"></span></h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="9000">
                <input type="hidden" name="type" value="{{$fsnum['infotype']}}">
                <input type="hidden" name="infoname" value="放水赔率">
                <div class="layui-form-item">
                    <label class="layui-form-label">赔率比例</label>
                    <div class="layui-input-block">
                        <input type="text" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input" value="{{$fsnum['infocontent']}}">
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$stsource['infotype']}}">体育比分数据源设置<span
                    style="font-size: 10px;"></span></h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1000">
                <input type="hidden" name="type" value="{{$stsource['infotype']}}">
                <input type="hidden" name="infoname" value="体育比分数据源设置">
                <div class="layui-form-item">
                    <label class="layui-form-label">数据源设置</label>
                    <div class="layui-input-block">
                        <select name="infocontent" >
                            <option value></option>
                            @if(isset($source))
                                @foreach($source as $k=>$v)
                                    <option value="{{ $v['source'] }}"  @if(isset($stsource)&&$stsource['infocontent']==$v['source'])  selected @endif>
                                        @if(isset($lange[$v['source']]))  {{$lange[trim($v['source'])]}} @else {{$v['source']}}   @endif
                                    </option>
                                @endforeach
                            @endif
                        </select>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <!--新版弹窗设置-->
    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="33">APP版弹窗设置[33]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="type" value="33">
                <input type="hidden" name="infoname" value="APP版弹窗设置">
                <input type="hidden" name="important_newsid"
                       value="{{isset($new_box['important_news']['id'])?$new_box['important_news']['id']:''}}">
                       <input type="hidden" name="site_navigationid"
                       value="{{isset($new_box['site_navigationid']['id'])?$new_box['site_navigation']['id']:''}}">
                       <input type="hidden" name="contact_customerid"
                       value="{{isset($new_box['contact_customer']['id'])?$new_box['contact_customer']['id']:''}}">
                       <input type="hidden" name="con_timedid"
                       value="{{isset($new_box['con_timed']['id'])?$new_box['con_timed']['id']:''}}">

                <label class="layui-form-label">
                    <p style="color: green;width: 330px;"><span style="color: red;">重要消息：请直接在活动公告中发布</span>
                    </p>
                </label>
                {{--<!-- <div class="layui-form-item">
                    <label class="layui-form-label">重要消息</label>
                    <div class="layui-input-block">
                        <textarea name="important_news" id="LAY_news_editors"
                                  style="width:1000px;height:240px;">{{isset($new_box['important_news']['infocontent'])?$new_box['important_news']['infocontent']:''}}</textarea>
                    </div>
                </div> -->--}}

                <div class="layui-form-item">
                    <label class="layui-form-label">网址导航</label>

                    <div class="layui-input-block">
                        <textarea name="site_navigation" id="LAY_site_editors"
                                  style="width:1000px;height:240px;">{{isset($new_box['site_navigation']['infocontent'])?$new_box['site_navigation']['infocontent']:''}}</textarea>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">联系客服</label>
                    <div class="layui-input-block">
                        <textarea name="contact_customer" id="LAY_customer_editors"
                                  style="width:1000px;height:240px;">{{isset($new_box['contact_customer']['infocontent'])?$new_box['contact_customer']['infocontent']:''}}</textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">时间间隔</label>
                    <div class="layui-input-block">
                        <input type="number" name="con_timed" id="con_timed" lay-verify="title" autocomplete="off"
                               placeholder=""
                               class="layui-input"
                               value="{{isset($new_box['con_timed']['infocontent'])?$new_box['con_timed']['infocontent']:''}}" ><p style="color:red;">备注：单位（分钟）</p>
                    </div>
                </div>



            </form>
        </div>
    </div>

    <!-- <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$qq['infotype']}}">客服QQ设置[16]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1002">
                <input type="hidden" name="type" value="{{$qq['infotype']}}">
                <input type="hidden" name="infoname" value="{{$qq['infoname']?$qq['infoname']:'客服QQ设置'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">QQ号码</label>
                    <div class="layui-input-block">
                        <input type="text" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input" value="{{$qq['infocontent']}}">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">是否开启QQ</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" title="启用" @if($qq['status']==1) checked @endif>
                        <input type="radio" name="status" value="0" title="关闭" @if($qq['status']==0) checked @endif>
                    </div>
                </div>
            </form>

        </div>
    </div>
 -->
    <!--联系我们设置-->
    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{isset($connectioninfo['con_tel']['infotype'])?$connectioninfo['con_tel']['infotype']:1017}}">
            联系我们设置[1017]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="type"
                       value="{{isset($connectioninfo['con_tel']['infotype'])?$connectioninfo['con_tel']['infotype']:1017}}">
                <input type="hidden" name="infoname"
                       value="{{isset($connectioninfo['con_tel']['infoname'])?$connectioninfo['con_tel']['infoname']:'联系我们设置'}}">
                <input type="hidden" name="con_telid" value="{{isset($connectioninfo['con_tel']['id'])?$connectioninfo['con_tel']['id']:''}}">
                <input type="hidden" name="con_qqid"
                       value="{{isset($connectioninfo['con_qq']['id'])?$connectioninfo['con_qq']['id']:''}}">
                <input type="hidden" name="con_skypeid"
                       value="{{isset($connectioninfo['con_skype']['id'])?$connectioninfo['con_skype']['id']:''}}">
                <input type="hidden" name="con_onlinesid" value="{{isset($connectioninfo['con_onlines']['id'])?$connectioninfo['con_onlines']['id']:''}}">
                <input type="hidden" name="con_weixinid" value="{{isset($connectioninfo['con_weixin']['id'])?$connectioninfo['con_weixin']['id']:''}}">
                <input type="hidden" name="con_emailid" value="{{isset($connectioninfo['con_email']['id'])?$connectioninfo['con_email']['id']:''}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">联系电话</label>
                    <div class="layui-input-block">
                        <input type="text" name="con_tel" id="con_tel" lay-verify="title" autocomplete="off"
                               placeholder=""
                               class="layui-input"
                               value="{{isset($connectioninfo['con_tel']['infocontent'])?$connectioninfo['con_tel']['infocontent']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">联系QQ</label>
                    <div class="layui-input-block">
                        <input type="text" name="con_qq" id="con_qq" lay-verify="title" autocomplete="off"
                               placeholder=""
                               class="layui-input"
                               value="{{isset($connectioninfo['con_qq']['infocontent'])?$connectioninfo['con_qq']['infocontent']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">Skype ID</label>
                    <div class="layui-input-block">
                        <input type="text" name="con_skype" id="con_skype" lay-verify="title" autocomplete="off"
                               placeholder=""
                               class="layui-input"
                               value="{{isset($connectioninfo['con_skype']['infocontent'])?$connectioninfo['con_skype']['infocontent']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">在线客服</label>
                    <div class="layui-input-block">
                        <input type="text" name="con_onlines" id="con_onlines" lay-verify="title" autocomplete="off"
                               placeholder=""
                               class="layui-input"
                               value="{{isset($connectioninfo['con_onlines']['infocontent'])?$connectioninfo['con_onlines']['infocontent']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">微信客服图片</label>
                    <div class="layui-input-block">
                        <input type="text" name="con_weixin" id="con_weixin" lay-verify="title" autocomplete="off"
                               placeholder=""
                               class="layui-input"
                               value="{{isset($connectioninfo['con_weixin']['infocontent'])?$connectioninfo['con_weixin']['infocontent']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">联系邮箱</label>
                    <div class="layui-input-block">
                        <input type="text" name="con_email" id="con_email" lay-verify="title" autocomplete="off"
                               placeholder=""
                               class="layui-input"
                               value="{{isset($connectioninfo['con_email']['infocontent'])?$connectioninfo['con_email']['infocontent']:''}}">
                    </div>
                </div>

            </form>
        </div>
    </div>

    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$agent['infotype']}}">旧版代理设置[13]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1003">
                <input type="hidden" name="type" value="{{$agent['infotype']?$agent['infotype']:13}}">
                <input type="hidden" name="infoname" value="{{$agent['infoname']?$agent['infoname']:'代理设置'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">是否开启代理模式</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" title="启用" @if($agent['status']==1) checked @endif>
                        <input type="radio" name="status" value="0" title="关闭" @if($agent['status']==0) checked @endif>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!-- <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$plat['infotype']}}">平台维护[0]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1004">
                <input type="hidden" name="type" value="{{$plat['infotype']}}">
                <input type="hidden" name="infoname" value="{{$plat['infoname']?$plat['infoname']:'平台维护'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">是否开启平台维护</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" title="启用" @if($plat['status']==1) checked @endif>
                        <input type="radio" name="status" value="0" title="关闭" @if($plat['status']==0) checked @endif>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">密码</label>
                    <div class="layui-input-inline">
                        <input type="password" name="password" lay-verify="title" autocomplete="off" placeholder="请输入密码"
                               class="layui-input">
                    </div>
                </div>

            </form>
        </div>
    </div> -->


    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$tokentime['infotype']}}">访问token时效设置<span style="font-size: 10px;">[100]</span>
        </h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="100">
                <input type="hidden" name="type" value="100">
                <input type="hidden" name="remarks" value="token_expired_time">
                <input type="hidden" name="infoname" value="{{$tokentime['infoname']?$tokentime['infoname']:'访问token时效设置'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">token失效时间</label>
                    <div class="layui-input-inline">
                        <input type="number" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input" value="{{$tokentime['infocontent']}}">
                    </div>
                    <div class="layui-form-mid layui-word-aux">分钟</div>
                </div>
            </form>
        </div>
    </div>

    <!-- <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$game['infotype']}}">虚拟中奖信息设置[15]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1005">
                <input type="hidden" name="type" value="{{$game['infotype']}}">
                <input type="hidden" name="infoname" value="{{$game['infoname']?$game['infoname']:'虚拟中奖信息设置'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">是否开启虚拟数据</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" title="启用" @if($game['status']==1) checked @endif>
                        <input type="radio" name="status" value="0" title="关闭" @if($game['status']==0) checked @endif>
                    </div>
                </div>

            </form>
        </div>
    </div> -->
    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$run['infotype']}}">跑马灯设置[9]<span style="font-size: 10px;">[9/id-1006]</span>
        </h2>
        {{--<!-- <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1106">
                <input type="hidden" name="type" value="{{$run['infotype']}}">
                <input type="hidden" name="infoname" value="{{$run['infoname']?$run['infoname']:'充值跑马灯内容'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">跑马灯内容</label>
                    <div class="layui-input-block">
                        <input type="text" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input" value="{{$run['infocontent']}}">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">是否开启跑马灯</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" title="启用" @if($run['status']==1) checked @endif>
                        <input type="radio" name="status" value="0" title="关闭" @if($run['status']==0) checked @endif>
                    </div>
                </div>
            </form>
        </div> -->--}}
    </div>


<!--<div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="">收账银行卡信息管理</h2>
        <div class="layui-colla-content" id='bank'>
        {{--@foreach($bank as $v)--}}
        <form class="layui-form" action="">
{{--<input type="hidden" name="type" value="{{$v['infotype']}}">--}}
        <div class="layui-form-item">
            <label class="layui-form-label">用户名：</label>
            <div class="layui-input-block">
                <input type="text" name="infoname" lay-verify="title" autocomplete="off" placeholder=""
{{--class="layui-input" value="{{$v['infoname']}}">--}}
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">银行卡号：</label>
        <div class="layui-input-block">
            <input type="text" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
{{--class="layui-input" value="{{$v['infocontent']}}">--}}
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">银行：</label>
        <div class="layui-input-block">
            <input type="text" name="remarks" lay-verify="title" autocomplete="off" placeholder=""
{{--class="layui-input" value="{{$v['remarks']}}">--}}
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">开户网点：</label>
        <div class="layui-input-block">
            <input type="text" name="extinfo" lay-verify="title" autocomplete="off" placeholder=""
{{--class="layui-input" value="{{$v['extinfo']}}">--}}
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">是否启用银行卡</label>
        <div class="layui-input-block">
{{--<input type="radio" name="status" value="1" title="启用" @if($v['status']==1) checked @endif>--}}
{{--<input type="radio" name="status" value="0" title="关闭" @if($v['status']==0) checked @endif>--}}
        </div>
    </div>
</form>
{{--@endforeach--}}
        </div>
    </div>-->
    <div class="layui-colla-item">
        <h2 class="layui-colla-title">会员注册设置</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="type" value="huiyaun">
                <div class="layui-form-item">
                    <label class="layui-form-label">是否启用邮箱注册</label>
                    <div class="layui-input-block">
                        <input type="radio" name="enable_mail" value="1" title="启用"
                               @if($reg['enable_mail']==1) checked @endif>
                        <input type="radio" name="enable_mail" value="0" title="关闭"
                               @if($reg['enable_mail']==0) checked @endif>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">是否启QQ</label>
                    <div class="layui-input-block">
                        <input type="radio" name="enable_qq" value="1" title="启用"
                               @if($reg['enable_qq']==1) checked @endif>
                        <input type="radio" name="enable_qq" value="0" title="关闭"
                               @if($reg['enable_qq']==0) checked @endif>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">是否启用手机</label>
                    <div class="layui-input-block">
                        <input type="radio" name="enable_phone" value="1" title="启用"
                               @if($reg['enable_phone']==1) checked @endif>
                        <input type="radio" name="enable_phone" value="0" title="关闭"
                               @if($reg['enable_phone']==0) checked @endif>
                    </div>
                </div>
                <!--<div class="layui-form-item">
                    <label class="layui-form-label">是否启用真实姓名验证</label>
                    <div class="layui-input-block">
                        <input type="radio" name="rel_name" value="1" title="启用"
                               @if($reg['rel_name']==1) checked @endif>
                        <input type="radio" name="rel_name" value="0" title="关闭"
                               @if($reg['rel_name']==0) checked @endif>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">是否启用介绍人</label>
                    <div class="layui-input-block">
                        <input type="radio" name="sex" value="启用" title="启用" checked="">
                        <input type="radio" name="sex" value="关闭" title="关闭">
                    </div>
                </div>-->
                <div class="layui-form-item">
                    <label class="layui-form-label">是否启用短信验证</label>
                    <div class="layui-input-block">
                        <input type="radio" name="enable_sms" value="1" title="启用"
                               @if($reg['enable_sms']==1) checked @endif>
                        <input type="radio" name="enable_sms" value="0" title="关闭"
                               @if($reg['enable_sms']==0) checked @endif>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">是否启用邀请码</label>
                    <div class="layui-input-block">
                        <input type="radio" name="enable_invita" value="1" title="启用"
                               @if($reg['enable_invita']==1) checked @endif>
                        <input type="radio" name="enable_invita" value="0" title="关闭"
                               @if($reg['enable_invita']==0) checked @endif>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">是否启用微信</label>
                    <div class="layui-input-block">
                        <input type="radio" name="enable_wechat" value="1" title="启用"
                               @if($reg['enable_wechat']==1) checked @endif>
                        <input type="radio" name="enable_wechat" value="0" title="关闭"
                               @if($reg['enable_wechat']==0) checked @endif>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">是否启用验证码</label>
                    <div class="layui-input-block">
                        <input type="radio" name="enable_code" value="1" title="启用"
                               @if($reg['enable_code']==1) checked @endif>
                        <input type="radio" name="enable_code" value="0" title="关闭"
                               @if($reg['enable_code']==0) checked @endif>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">注册成功引导页</label>
                    <div class="layui-input-block">
                        <input type="radio" name="success_tip" value="1" title="启用"
                               @if($reg['success_tip']==1) checked @endif>
                        <input type="radio" name="success_tip" value="0" title="关闭"
                               @if($reg['success_tip']==0) checked @endif>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!---分享注册设置-->
    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$regInfo['infotype']?$regInfo['infotype']:1024}}">代理分享注册设置[1024]</h2>
        <div class="layui-colla-content regPage">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="{{$regInfo['id']?$regInfo['id']:1024}}">
                <input type="hidden" name="type" value="{{$regInfo['infotype']?$regInfo['infotype']:1024}}">
                <div class="layui-form-item" id="showimg">
                    <label class="layui-form-label">标题:</label>
                    <div class="layui-input-block">
                        <input type="text" name="infoname"  style="width:600px;"  class="layui-input" value="{{$regInfo['infoname']?$regInfo['infoname']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">内容:</label>
                    <div class="layui-input-block">
                        <textarea name="infocontent" id="LAY_demo_editorss"
                                  style="width:1000px;height:240px;">{{$regInfo['infocontent']?$regInfo['infocontent']:''}}</textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">类型</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" eventType="event-query" value="1" title="分享页"
                               @if($regInfo['status']==1) checked @endif>
                        <input type="radio" name="status" eventType="event-query" value="0" title="注册页"
                               @if($regInfo['status']==0) checked @endif>
                        <input type="radio" name="status" eventType="event-query" value="2" title="首页"
                               @if($regInfo['status']==2) checked @endif>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$url['infotype']}}">前台接口域名<span
                    style="font-size: 10px;">[18/id-1006]</span></h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1006">
                <input type="hidden" name="type" value="{{$url['infotype']?$url['infotype']:18}}">
                <input type="hidden" name="infoname" value="{{$url['infoname']?$url['infoname']:'前台接口域名1'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">前台接口域名</label>
                    <div class="layui-input-block">
                        <input type="text" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input" value="{{$url['infocontent']}}">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">是否开启</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" title="启用" @if($url['status']==1) checked @endif>
                        <input type="radio" name="status" value="0" title="关闭" @if($url['status']==0) checked @endif>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$open['infotype']}}">开奖Token设置<span style="font-size: 10px;">[1000/id-1007]</span>
        </h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1007">
                <input type="hidden" name="type" value="{{$open['infotype']?$open['infotype']:1000}}">
                <input type="hidden" name="infoname" value="{{$open['infoname']?$open['infoname']:'开奖Token设置'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">开奖Token设置</label>
                    <div class="layui-input-block">
                        <input type="text" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input" value="{{$open['infocontent']}}">
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$extension['infotype']}}">旧版推广地址[31/id-1008]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1008">
                <input type="hidden" name="type" value="{{$extension['infotype']?$extension['infotype']:31}}">
                <input type="hidden" name="infoname" value="{{$extension['infoname']?$extension['infoname']:'推广地址'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">推广地址</label>
                    <div class="layui-input-block">
                        <input type="text" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input"
                               value="{{$extension['infocontent']?$extension['infocontent']:'none'}}">
                        <span>没有地址默认为none</span>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$quickUl['infotype']}}">快捷支付网关地址[22/id-1009]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1009">
                <input type="hidden" name="type" value="{{$quickUl['infotype']?$quickUl['infotype']:22}}">
                <input type="hidden" name="infoname" value="{{$quickUl['infoname']?$quickUl['infoname']:'快捷支付网关地址'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">快捷支付网关地址</label>
                    <div class="layui-input-block">
                        <input type="text" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input" value="{{$quickUl['infocontent']}}">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">是否开启</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" title="启用" @if($url['status']==1) checked @endif>
                        <input type="radio" name="status" value="0" title="关闭" @if($url['status']==0) checked @endif>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$two['infotype']}}">二级密码[20/id-1010]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1010">
                <input type="hidden" name="type" value="{{$two['infotype']?$two['infotype']:20}}">
                <input type="hidden" name="infoname" value="{{$two['infoname']?$two['infoname']:'二级密码'}}">
                <input type="hidden" name="infocontent" value="{{$two['infoname']?$two['infoname']:'二级密码'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">是否开启二级密码</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" eventType="event-query" title="启用"
                               @if($two['status']==1) checked @endif>
                        <input type="radio" name="status" value="0" eventType="event-query" title="关闭"
                               @if($two['status']==0) checked @endif>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!--授权token-->
    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$add_token['infotype']?$add_token['infotype']:19}}">
            授权Token[19/id-1011]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1011">
                <input type="hidden" name="type" value="{{$add_token['infotype']?$add_token['infotype']:19}}">
                <input type="hidden" name="infoname"
                       value="{{$add_token['infoname']?$add_token['infoname']:'授权Token'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">授权Token</label>
                    <div class="layui-input-block">
                        <input type="text" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input" value="{{$add_token['infocontent']}}">
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!--是否更新赔率设置-->
    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$updateOdds['infotype']?$updateOdds['infotype']:1911}}">更新赔率[19/id-1911]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1911">
                <input type="hidden" name="type" value="{{$updateOdds['infotype']?$updateOdds['infotype']:1911}}">
                <input type="hidden" name="infoname"
                       value="{{$updateOdds['infoname']?$updateOdds['infoname']:'是否更新赔率'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">更新赔率</label>
                    <div class="layui-input-block">
                        <input type="text" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input" value="{{$updateOdds['infocontent']}}">
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!--缓存更新时间设置-->
    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$updateTime['infotype']?$updateTime['infotype']:1912}}">缓存更新[19/id-1912]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1912">
                <input type="hidden" name="type" value="{{$updateTime['infotype']?$updateTime['infotype']:1912}}">
                <input type="hidden" name="infoname"
                       value="{{$updateTime['infoname']?$updateTime['infoname']:'缓存更新时间'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">更新时间</label>
                    <div class="layui-input-block">
                        <input type="text" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input" value="{{$updateTime['infocontent']}}">
                    </div>
                </div>
            </form>
        </div>
    </div>

    <!--代理弹框设置-->
    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{$agent_box['infotype']?$agent_box['infotype']:21}}">
            旧版代理弹框设置[21/id-1012]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1012">
                <input type="hidden" name="type" value="{{$agent_box['infotype']?$agent_box['infotype']:21}}">
                <input type="hidden" name="infoname" value="{{$agent_box['infoname']?$agent_box['infoname']:'代理弹框设置'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">代理弹框内容</label>
                    <div class="layui-input-block">
                        <input type="text" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input"
                               value="{{$agent_box['infocontent']?$agent_box['infocontent']:'none'}}">
                        <span>没有值默认为none</span>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!---代理推广域名设置-->
    <div class="layui-colla-item">
        <h2 class="layui-colla-title">旧版代理推广域名设置[30/id-1013]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1013">
                <input type="hidden" name="type" value="{{isset($agentUrl['infotype'])?$agentUrl['infotype']:30}}">
                <input type="hidden" name="infoname"
                       value="{{isset($agentUrl['infoname'])?$agentUrl['infoname']:'代理推广域名设置'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">代理推广域名设置</label>
                    <div class="layui-input-block">
                        <input type="text" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input"
                               value="{{isset($agentUrl['infocontent'])?$agentUrl['infocontent']:''}}">
                    </div>
                    <label class="layui-form-label">
                        <p style="color: green;width: 220px;">注：设置多个链接请用<span style="color: red;">&nbsp;||&nbsp;</span>分割
                        </p>
                    </label>
                </div>
            </form>
        </div>
    </div>

    <!---级差代理分享链接设置-->
    <div class="layui-colla-item">
        <h2 class="layui-colla-title">级差代理分享链接设置[1018]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1018">
                <input type="hidden" name="type" value="{{isset($nagentFxUrl['infotype'])?$nagentFxUrl['infotype']:1018}}">
                <input type="hidden" name="infoname"
                       value="{{isset($nagentFxUrl['infoname'])?$nagentFxUrl['infoname']:'级差代理分享链接设置'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">级差代理分享链接设置</label>
                    <div class="layui-input-block">
                        <input type="text" maxlength="100" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input"
                               value="{{isset($nagentFxUrl['infocontent'])?$nagentFxUrl['infocontent']:''}}">
                    </div>
                </div>
            </form>
        </div>
    </div>

    <!--ip限制设置-->
    <!-- <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{isset($ip['infotype'])?$ip['infotype']:23}}">IP限制设置[23/id-1014]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1014">
                <input type="hidden" name="type" value="{{isset($ip['infotype'])?$ip['infotype']:23}}">
                <input type="hidden" name="infoname" value="{{$ip['infoname']?$ip['infoname']:'IP限制设置'}}">
                <input type="hidden" name="infocontent" value="{{$ip['infocontent']?$ip['infocontent']:'IP限制设置'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">IP限制设置</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" title="启用" @if($ip['status']==1) checked @endif>
                        <input type="radio" name="status" value="0" title="关闭" @if($ip['status']==0) checked @endif>
                    </div>
                </div>

            </form>
        </div>
    </div> -->
    <!--网站设置-->
    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{isset($net['netname']['infotype'])?$net['netname']['infotype']:24}}">
            网站设置[24]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="type"
                       value="{{isset($net['netname']['infotype'])?$net['netname']['infotype']:24}}">
                <input type="hidden" name="infoname"
                       value="{{isset($net['netname']['infoname'])?$net['netname']['infoname']:'网站设置'}}">
                <input type="hidden" name="netnameid" value="{{isset($net['netname']['id'])?$net['netname']['id']:''}}">
                <input type="hidden" name="recedataid"
                       value="{{isset($net['recedata']['id'])?$net['recedata']['id']:''}}">
                <input type="hidden" name="netkeywordsid"
                       value="{{isset($net['netkeywords']['id'])?$net['netkeywords']['id']:''}}">
                <input type="hidden" name="netdescid" value="{{isset($net['netdesc']['id'])?$net['netdesc']['id']:''}}">
                <input type="hidden" name="logourlid" value="{{isset($net['logourlid']['id'])?$net['logourlid']['id']:''}}">
                <input type="hidden" name="loginlogoid" value="{{isset($net['loginlogoid']['id'])?$net['loginlogoid']['id']:''}}">
                <input type="hidden" name="quicklypayid" value="{{isset($net['quicklypay']['id'])?$net['quicklypay']['id']:''}}">
                <input type="hidden" name="appdownloadid" value="{{isset($net['appdownload']['id'])?$net['appdownload']['id']:''}}">
                <input type="hidden" name="realpersonid" value="{{isset($net['realperson']['id'])?$net['realperson']['id']:''}}">
                <input type="hidden" name="showhomeid" value="{{isset($net['showhome']['id'])?$net['showhome']['id']:''}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">网站名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="netname" id="netname" lay-verify="title" autocomplete="off"
                               placeholder=""
                               class="layui-input"
                               value="{{isset($net['netname']['infocontent'])?$net['netname']['infocontent']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">系统名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="recedata" id="recedata" lay-verify="title" autocomplete="off"
                               placeholder=""
                               class="layui-input"
                               value="{{isset($net['recedata']['infocontent'])?$net['recedata']['infocontent']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">网站关键词</label>
                    <div class="layui-input-block">
                        <input type="text" name="netkeywords" id="netkeywords" lay-verify="title" autocomplete="off"
                               placeholder=""
                               class="layui-input"
                               value="{{isset($net['netkeywords']['infocontent'])?$net['netkeywords']['infocontent']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">网站描述</label>
                    <div class="layui-input-block">
                        <input type="text" name="netdesc" id="netdesc" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input"
                               value="{{isset($net['netdesc']['infocontent'])?$net['netdesc']['infocontent']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">网站logo地址</label>
                    <div class="layui-input-block">
                        <input type="text" name="logourl" id="logourl" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input"
                               value="{{isset($net['logourl']['infocontent'])?$net['logourl']['infocontent']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">登录logo图片</label>
                    <div class="layui-input-block">
                        <input type="text" name="loginlogo" id="loginlogo" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input"
                               value="{{isset($net['loginlogo']['infocontent'])?$net['loginlogo']['infocontent']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">快速充值地址</label>
                    <div class="layui-input-block">
                        <input type="text" name="quickly_pay" id="quickly_pay" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input"
                               value="{{isset($net['quickly_pay']['infocontent'])?$net['quickly_pay']['infocontent']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">APP引导下载链接页面</label>
                    <div class="layui-input-block">
                        <input type="text" name="app_download" id="app_download" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input"
                               value="{{isset($net['app_download']['infocontent'])?$net['app_download']['infocontent']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">真人跳转网址</label>
                    <div class="layui-input-block">
                        <input type="text" name="real_person" id="real_person" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input"
                               value="{{isset($net['real_person']['infocontent'])?$net['real_person']['infocontent']:''}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">H5首页模板[默认:/home]</label>
                    <div class="layui-input-block">
                        <input type="text" name="showhome" id="real_person" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input"
                               value="{{isset($net['showhome']['infocontent'])?$net['showhome']['infocontent']:''}}">
                    </div>
                </div>
            </form>
        </div>
    </div>

    <!--websocket ip设置-->
    <!-- <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{isset($wsport['infotype'])?$wsport['infotype']:9501}}">聊天服务器IP设置[9501]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="type" value="{{isset($wsport['infotype'])?$wsport['infotype']:9501}}">
                <input type="hidden" name="infoname" value="{{$wsport['infoname']?$wsport['infoname']:'聊天服务器IP'}}">
                <input type="hidden" name="infotype" value="{{$wsport['infotype']?$wsport['infotype']:'9501'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">聊天服务器IP 端口设置</label>
                    <div class="layui-input-block">
                        <input type="text"  class="layui-input" name="infocontent" value ="{{$wsport['infocontent'] }}">
                    </div>
                    <div class="layui-form-mid layui-word-aux layui-input-block">IP 端口(格式为ws:192.168.2.200:9501||wss:192.168.2.200:9501)</div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">聊天室token</label>
                    <div class="layui-input-block">
                        <input type="text"  class="layui-input" name="extinfo" value ="{{$wsport['extinfo'] }}">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" title="开启" @if($wsport['status']==1) checked @endif>
                        <input type="radio" name="status" value="0" title="关闭" @if($wsport['status']==0) checked @endif>
                    </div>
                </div>

            </form>
        </div>
    </div> -->

    <!--加拿大28维护-->
    <!-- <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{isset($jnd['infotype'])?$jnd['infotype']:40}}">加拿大28维护[40/id-1113]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="1113">
                <input type="hidden" name="type" value="{{isset($jnd['infotype'])?$jnd['infotype']:40}}">
                <input type="hidden" name="infoname" value="{{$jnd['infoname']?$jnd['infoname']:'加拿大28维护'}}">
                <input type="hidden" name="infocontent" value="{{$jnd['infocontent']?$jnd['infocontent']:'加拿大28维护'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">时间设置</label>
                    <div class="layui-input-block">
                        <input type="text" name="starttime" lay-verify="title" autocomplete="off"
                               class="layui-input" value="{{$jnd['extinfo'][0]}}"  placeholder="开始时间">-
                        <input type="text" name="endtime" lay-verify="title" autocomplete="off"
                               class="layui-input" value="{{$jnd['extinfo'][1]}}" placeholder="结束时间">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" title="夏令" @if($jnd['status']==1) checked @endif>
                        <input type="radio" name="status" value="0" title="冬令" @if($jnd['status']==0) checked @endif>
                    </div>
                </div>

            </form>
        </div>
    </div> -->

    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{isset($playtest['infotype'])?$playtest['infotype']:2000}}">试玩账号时间设置[2000/id-2000]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="2000">
                <input type="hidden" name="type" value="{{isset($playtest['infotype'])?$playtest['infotype']:2000}}">
                <input type="hidden" name="infoname"
                       value="{{isset($playtest['infoname'])?$playtest['infoname']:'试玩账号时间设置'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">试玩账号时间设置</label>
                    <div class="layui-input-block">
                        <input type="text" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input"
                               value="{{isset($playtest['infocontent'])?$playtest['infocontent']:''}}">
                    </div>
                    <label class="layui-form-label">
                        <p style="color: green;width: 360px;">注：设置时间是以<span style="color: red;">小时</span>为单位，设置一天，就填写数字<span style="color: red;">24</span>
                        </p>
                    </label>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" title="开启" @if($playtest['status']==1) checked @endif>
                        <input type="radio" name="status" value="0" title="关闭" @if($playtest['status']==0) checked @endif>
                    </div>
                </div>

            </form>
        </div>
    </div>

    <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{isset($oggame['infotype'])?$oggame['infotype']:2001}}">真人自动转账设置[2001/id-2001]</h2>
        <div class="layui-colla-content">

            <form class="layui-form" action="">
                <input type="hidden" name="id" value="2001">
                <input type="hidden" name="remarks" value="zhenren_all">
                <input type="hidden" name="type" value="{{isset($oggame['infotype'])?$oggame['infotype']:2001}}">
                <input type="hidden" name="infoname" value="{{$oggame['infoname']?$oggame['infoname']:'真人自动转账设置'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">是否真人转账自动审核</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" title="开启" @if($oggame['status']==1) checked @endif>
                        <input type="radio" name="status" value="0" title="关闭" @if($oggame['status']==0) checked @endif>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">全额自动转账模式打开</label>
                    <div class="layui-input-block">
                        <input type="radio" name="infocontent" value="1" title="开启" @if($oggame['infocontent']==1) checked @endif>
                        <input type="radio" name="infocontent" value="0" title="关闭" @if($oggame['infocontent']==0) checked @endif>
                    </div>
                </div>

            </form>
        </div>
    </div>

     <!-- <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{isset($liao['infotype'])?$liao['infotype']:2002}}">聊天室白名单[2002/id-2002]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="2002">
                <input type="hidden" name="type" value="{{isset($liao['infotype'])?$liao['infotype']:2002}}">
                <input type="hidden" name="infoname" value="{{$liao['infoname']?$liao['infoname']:'聊天室白名单'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">白名单用户</label>
                    <div class="layui-input-block">

                        <textarea type="text"  class="layui-textarea"  name="infocontent" value ="">{{$liao['infocontent'] }}</textarea>

                    </div>
                    <label class="layui-form-label">
                        <p style="color: green;width: 400px;">注：设置多个白名单用户请用<span style="color: red;">&nbsp;||&nbsp;</span>分割
                        </p>
                    </label>
                </div>
            </form>
        </div>
    </div> -->

    <!-- <div class="layui-colla-item">
        <h2 class="layui-colla-title" data-type="{{isset($word['infotype'])?$word['infotype']:2002}}">聊天室敏感字列表[2003/id-2003]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="2003">
                <input type="hidden" name="type" value="{{isset($word['infotype'])?$word['infotype']:2003}}">
                <input type="hidden" name="infoname" value="{{$word['infoname']?$word['infoname']:'敏感字列表'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">聊天室敏感字列表</label>
                    <div class="layui-input-block">

                        <input type="text"  class="layui-input" name="infocontent" value ="{{$word['infocontent'] }}">
                    </div>
                    <label class="layui-form-label">
                        <p style="color: green;width: 330px;">注：设置多个敏感字请用<span style="color: red;">&nbsp;||&nbsp;</span>分割
                        </p>
                    </label>
                </div>
            </form>
        </div>
    </div> -->
    <!---图片服务器地址-->
    <div class="layui-colla-item">
        <h2 class="layui-colla-title">图片服务器地址[2004]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="2004">
                <input type="hidden" name="remarks" value="imgserver">
                <input type="hidden" name="type" value="{{isset($imglink['infotype'])?$imglink['infotype']:2004}}">
                <input type="hidden" name="infoname"
                       value="{{isset($imglink['infoname'])?$imglink['infoname']:'图片服务器地址'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">图片服务器地址</label>
                    <div class="layui-input-block">
                        <input type="text" maxlength="100" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input"
                               value="{{isset($imglink['infocontent'])?$imglink['infocontent']:''}}">
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!---代理H5分享页面链接-->
    <div class="layui-colla-item">
        <h2 class="layui-colla-title">H5版前台链接[2005]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="2005">
                <input type="hidden" name="type" value="{{isset($H5ShareLink['infotype'])?$H5ShareLink['infotype']:2005}}">
                <input type="hidden" name="infoname"
                       value="{{isset($H5ShareLink['infoname'])?$H5ShareLink['infoname']:'代理H5分享页面链接'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">H5版前台链接</label>
                    <div class="layui-input-block">
                        <input type="text" maxlength="100" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input"
                               value="{{isset($H5ShareLink['infocontent'])?$H5ShareLink['infocontent']:''}}">
                    </div>
                </div>
            </form>
        </div>
    </div>

    <!---支付配置-->
    <div class="layui-colla-item">
        <h2 class="layui-colla-title">支付配置[20060]</h2>
        <div class="layui-colla-content">
            <form class="layui-form" action="">
                <input type="hidden" name="id" value="20060">
                <input type="hidden" name="remarks" value="payment_sort">
                <input type="hidden" name="type" value="{{isset($paymentCate['infotype'])?$paymentCate['infotype']:20060}}">
                <input type="hidden" name="infoname"
                       value="{{isset($paymentCate['infoname'])?$paymentCate['infoname']:'支付配置'}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">支付类型排序</label>
                    <div class="layui-input-block">
                        <input type="text" maxlength="100" name="infocontent" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input"
                               value="{{isset($paymentCate['infocontent'])?$paymentCate['infocontent']:''}}">
                    </div>
                    <label class="layui-form-label" style="width:auto;">
                        <p style="color: green;">注：请将支付类型代码按降序排列，多个类型用<span style="color: red;">&nbsp;||&nbsp;</span>分割，示例:&nbsp;&nbsp;bank||scan||quick||online
                            &nbsp;||&nbsp;类型列表：&nbsp;&nbsp;bank=转到银行卡,scan=扫码支付,quick=快速充值,online=在线充值
                        </p>
                    </label>
                </div>
            </form>
        </div>
    </div>
</div>
@if(checkRriv('/admin/BaseSet/updateInfo'))
<button class="layui-btn keep" style="margin-top: 10px;">保存设置</button>@endif


<script type="text/javascript" src={{ asset("baidu/third-party/jquery.min.js") }}></script>
<script type="text/javascript" charset="utf-8" src={{ asset("baidu/umeditor.config.js") }}></script>
<script type="text/javascript" charset="utf-8" src={{ asset("baidu/umeditor.min.js") }}></script>
<script type="text/javascript" src={{ asset("baidu/lang/zh-cn/zh-cn.js") }}></script>
<script type="text/javascript" src="/frame/layui/layui.js"></script>
<script src="<?php echo e(URL::asset('admin/js/jquery-1.11.3.js')); ?>" charset="utf-8"></script>
<script>

    //    $.fn.serializeObject = function() {
    //        var o = {};
    //        var a = this.serializeArray();
    //        $.each(a, function() {
    //            if (o[this.name]) {
    //                if (!o[this.name].push) {
    //                    o[this.name] = [ o[this.name] ];
    //                }
    //                o[this.name].push(this.value || '');
    //            } else {
    //                o[this.name] = this.value || '';
    //            }
    //        });
    //        return o;
    //    }

    $.fn.serializeJson = function () {
        var serializeObj = {};
        var array = this.serializeArray();
        var str = this.serialize();
        $(array).each(function () {
            if (serializeObj[this.name]) {
                if ($.isArray(serializeObj[this.name])) {
                    serializeObj[this.name].push(this.value);
                } else {
                    serializeObj[this.name] = [serializeObj[this.name], this.value];
                }
            } else {
                serializeObj[this.name] = this.value;
            }
        });
        return serializeObj;
    };



    layui.use(['element', 'layer', 'form', 'layedit'], function () {
        var element = layui.element
            , form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit;

        var $ = layui.$;
        $.ajaxSetup({
            headers: {
                'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
            }
        });
        var editIndex = UM.getEditor('LAY_demo_editor');
        var editIndexs = UM.getEditor('LAY_demo_editors');
        var editIndexnews = UM.getEditor('LAY_news_editors');
        var editIndexsite = UM.getEditor('LAY_site_editors');
        var editIndexcustomer = UM.getEditor('LAY_customer_editors');
        var editIndexss = UM.getEditor('LAY_demo_editorss');

        form.verify({
            infocontent: function (value) {
                layedit.sync(editIndex);
            },
            infocontents: function (value) {
                layedit.sync(editIndexs);
            },

            infocontent1: function (value) {
                layedit.sync(editIndexnews);
            },
            infocontent2: function (value) {
                layedit.sync(editIndexsite);
            },
            infocontent3: function (value) {
                layedit.sync(editIndexcustomer);
            }
         });
        /*form.on('radio', function(data){
            if(data.elem.name=='contentype'){
                if(data.value==1){
                    $("#showimg").hide();
                }else if (data.value==2) {
                    $("#showimg").show();
                }
            }

        });*/


        $('.keep').on('click', function () {
            var data = $('.layui-show').find('form').serializeJson();
            if (data.type == 8) {
                var content = $("#LAY_demo_editor").val();//layedit.getContent(editIndex);
                data.infocontent = content;
            }
            if (data.type == 6) {
                var content = $("#LAY_demo_editors").val();
                data.infocontent = content;
                data.extinfo = data.pctype+','+data.mobiletype;
                delete data['pctype'];
                delete data['mobiletype'];
                //console.log(data);
            }

            if (data.type == 24) {
                var netkeywords = $('#netkeywords').val();
                var recedata = $('#recedata').val();
                var netname = $('#netname').val();
                var netdesc = $('#netdesc').val();
                if (netname.length > 50) {
                    layer.msg('网站名称不可超过50字符');
                } /*else if (netname == '') {
                    layer.msg('网站名称不能为空');
                } else if (recedata == '') {
                    layer.msg('系统名称不能为空');
                }*/ else if (recedata.length > 250) {
                    layer.msg('系统名称不可超过50字符');
                } else if (netkeywords.length > 250) {
                    layer.msg('网站关键词不可超过250字符');
                } /*else if (netkeywords == '') {
                    layer.msg('网站关键词不能为空');
                } */else if (netdesc.length > 300) {
                    layer.msg('网站描述不可超过300字符');
                } /*else if (netdesc == '') {
                    layer.msg('网站描述不能为空');
                } */else {
                    $.ajax({
                        type: 'post',
                        url: '/admin/BaseSet/updateInfo',
                        data: {data: data},
                        dataType: 'json',
                        success: function (json) {
                            layer.msg(json.msg)
                        }
                    });
                }
            } else if (data.type == 1017) {
                var con_tel = $('#con_tel').val();
                var con_qq = $('#con_qq').val();
                var con_skype = $('#con_skype').val();
                var con_onlines = $('#con_onlines').val();6
                var con_email = $('#con_email').val();
                var con_weixin = $('#con_weixin').val();
                if(con_tel !=''){
                    if (con_tel.length > 11 || con_tel.length < 6) {
                        layer.msg('联系电话有误');
                        return false;
                    }
                }
                if(con_qq !=''){
                    if (con_qq.length > 15 || con_qq.length < 6) {
                        layer.msg('联系QQ有误');
                        return false;
                    }
                }
                if (con_skype.length > 20) {
                    layer.msg('skype ID不超过20字符');
                } else if (con_onlines.length > 250) {
                    layer.msg('在线客服地址不超过250字符');
                } else if (con_weixin.length > 100) {
                    layer.msg('微信客服不超过100字符');
                } else if (con_email.length > 100) {
                    layer.msg('邮箱不超过100字符');
                }else {
                    $.ajax({
                        type: 'post',
                        url: '/admin/BaseSet/updateInfo',
                        data: {data: data},
                        dataType: 'json',
                        success: function (json) {
                            layer.msg(json.msg)
                        }
                    });
                }
            } else {
                $.ajax({
                    type: 'post',
                    url: '/admin/BaseSet/updateInfo',
                    data: {data: data},
                    dataType: 'json',
                    success: function (json) {
                        layer.msg(json.msg)
                    }
                });
            }
        });
    });


</script>
</body>
</html>
