@extends('vip.layouts')
@section('seo_title')
    {{ trans('menu.Rechargedrawals') }}
@endsection
@section('content')
    <style>
        .layui-laydate-range {
            width: auto;
        }

        .layui-form-switch em {
            width: auto;
        }

        .layui-form-switch {
            width: 44px;
            line-height: 23px;
        }

        .layui-form-item .checkbox {
            width: auto;
        }
    </style>

    <script type="text/html" id="userrecharge">


    </script>

    <script type="text/html" id="rechargeStatus">

    </script>

    <div class="layui-row">

        <div class="layui-col-xs12">

            <form class="layui-form rewrite" action="" eventType=eventForm>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <div class="layui-inline">
                            <label class="layui-form-label">{{ trans('report.star_time') }}</label>
                            <div class="layui-input-inline">
                                <input type="text" name="star_time" id="star_time" placeholder=" - " lay-verify="" eventType="event-query"
                                       autocomplete="off" class="layui-input test-item" eventType=event-query>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">{{ trans('report.end_time') }}</label>
                            <div class="layui-input-inline">
                                <input type="text" name="end_time" id="end_time" placeholder=" - " lay-verify="" eventType="event-query"
                                       autocomplete="off" class="layui-input test-item" eventType=event-query>
                            </div>
                        </div>

                        <div class="layui-inline">
                            <a class="layui-btn layui-btn-sm lay-btn-diy"  eventType=event-query-submit  data-type="reload" style="opacity: 1; pointer-events: auto;"
                            >提交</a>
                            <a  class="layui-btn   layui-btn-sm  layui-btn-normal reset" data-type="reload" style="opacity: 1; pointer-events: auto;" type="" href="" >重置</a>
                            <a class="layui-btn layui-btn-sm layui-btn-green set" data-type="reload" style="opacity: 1; pointer-events: auto;" href="javascript:window.location.reload()">
                                <i class="layui-icon">ဂ</i>
                            </a>
                        </div>
                        <div class="layui-inline">
                            <a href="/admin/redbag/addRedBag" class="layui-btn layui-btn-sm ">添加红包</a>
                        </div>
                        <div class="layui-inline">
                            <a href="/admin/redbag/giveDemo" class="layui-btn layui-btn-sm ">导出红包示例</a>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>

    @push('dataTableJS')

        //	$('.lay-btn-diy').on('click', function(){
        //		var type = $(this).data('type');
        //		active[type] ? active[type].call(this) : '';
        //	});

        //重置表单
        $('.reset').on('click',function(){
        $('input').val('');
        $('#name').val('');
        //		var type = $(this).data('type');
        //		active[type] ? active[type].call(this) : '';
        });

        //刷新表单
        $('.set').on('click',function(){
        //    var type = $(this).data('type');
        //    active[type] ? active[type].call(this) : '';
        });

    @endpush

    @include('vip.datatable')
@endsection
