@extends('admin.layout')
@section('header')

    <link href="/base/css/fileinput.css" media="all" rel="stylesheet" type="text/css" />

    <script src="/base/js/fileinput.js" type="text/javascript"></script>
    <script src="/base/js/fileinput_locale_zh.js" type="text/javascript"></script>

@endsection
@section('content')

    <?php
    if (!isset($data)) $data = array();
    if (!$data && session("data")) {
        $data = session("data");
    }
    if (!$data && session('_old_input')) {
        $data = session("_old_input");
    }
    ?>
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>系统设置</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link"> <i class="fa fa-chevron-up"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-lg-10">
                                <form name="form_product" id="form-validation" action=""
                                      class="form-horizontal form-validation" accept-charset="UTF-8" method="post">







                                        <div class="form-group">

                                            <label class="control-label col-sm-3">画册appID</label>

                                            <div class="col-sm-9">
                                                <input id="data_xyx_id" name="data[xyx_id]" class="form-control"
                                                       value="{{ $data['xyx_id'] or ''}}" required=""
                                                       aria-required="true" placeholder="">
                                            </div>

                                        </div>
                                        <div class="form-group">

                                            <label class="control-label col-sm-3">画册appSecret</label>

                                            <div class="col-sm-9">
                                                <input id="data_xyx_secret" name="data[xyx_secret]" class="form-control"
                                                       value="{{ $data['xyx_secret'] or ''}}" required=""
                                                       aria-required="true" placeholder="">
                                            </div>

                                        </div>
                                        <div class="form-group">

                                            <label class="control-label col-sm-3">画册TemplateId</label>

                                            <div class="col-sm-9">
                                                <input id="data_wxFurniture_template_id" name="data[wxFurniture_template_id]" class="form-control"
                                                       value="{{ $data['wxFurniture_template_id'] or ''}}" placeholder="">
                                            </div>

                                        </div>
                                    <div class="form-group">

                                        <label class="control-label col-sm-3">公众号appID</label>

                                        <div class="col-sm-9">
                                            <input id="data_service_app_id" name="data[G_app_id]"
                                                   class="form-control"
                                                   value="{{ $data['G_app_id'] or ''}}" required=""
                                                   aria-required="true"
                                                   placeholder="">
                                        </div>

                                    </div>
                                    <div class="form-group">

                                        <label class="control-label col-sm-3">公众号appSecret</label>

                                        <div class="col-sm-9">
                                            <input id="data_service_app_secret" name="data[G_app_secret]"
                                                   class="form-control"
                                                   value="{{ $data['G_app_secret'] or ''}}" required=""
                                                   aria-required="true" placeholder="">
                                        </div>

                                    </div>
                                    <div class="form-group">

                                        <label class="control-label col-sm-3">公众号TemplateID</label>

                                        <div class="col-sm-9">
                                            <input id="data_wxaccount_template_id" name="data[wxaccount_template_id]"
                                                   class="form-control"
                                                   value="{{ $data['wxaccount_template_id'] or ''}}" placeholder="">
                                        </div>

                                    </div>



                                    <div class="form-group">

                                        <label class="control-label col-sm-3">是否获取手机号</label>

                                        <div class="col-sm-9">
                                            <label class="radio-inline">
                                                <input type="radio" name="data[getPhone]" value="1"
                                                       @if(isset($data['getPhone']) && $data['getPhone'] == '1')checked="checked" @endif/>是
                                            </label>
                                            <label class="radio-inline">
                                                <input type="radio" name="data[getPhone]" value="0"
                                                       @if(isset($data['getPhone']) && $data['getPhone'] == '0')checked="checked" @endif/>否
                                            </label>
                                        </div>

                                    </div>

                                    <div class="form-group">
                                        <label class="control-label col-sm-3">&nbsp;</label>
                                        <div class="col-sm-9">
                                            <input type="hidden" name="_referer"
                                                   value="<?php echo urlencode(request()->server('HTTP_REFERER'));?>"/>
                                            <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>"/>
                                            <input type="submit" class="btn btn-success" style="margin-right:20px;">
                                            <input type="reset" class="btn btn-default">
                                        </div>
                                    </div>

                                </form>
                            </div>
                            <!-- /.col-lg-10 -->
                        </div>
                        <!-- /.row -->
                    </div>
                </div>
            </div>
        </div>
    </div>


    <script type="text/javascript">


    </script>
@endsection