@extends('vip.layouts')
@section('seo_title')
    {{ trans('menu.Withdrawals') }}
@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="query_status">
  <!-- 这里的 checked 的状态只是演示 -->
  <a href="/admin/with/View?identity=@{{d.account_identity}}&status=@{{d.statuss}}" >{{ trans('common.view') }}</a>

</script>
<script type="text/html" id="usertake">
  <!-- 这里的 checked 的状态只是演示 -->
  <a href="/admin/with/View?identity=@{{d.account_identity}}&status=@{{d.statuss}}&star_time=@{{d.star_time}}&end_time=@{{d.end_time}}" >@{{ d.account_name}}</a>

</script>

<script type="text/html" id="userStatus">
        @{{#if(d.status=="通过"){ }}
        <p style="color:red;">@{{d.status}}</p>
        @{{#}else{ }}
        @{{#if(d.status=="未通过"){ }}
         <p style="color:green;">@{{d.status}}</p>
        @{{#}else{ }}
         <p style="color:#00868B;">@{{d.status}}</p>
        @{{#} }}
        @{{#} }}
</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">

						<label class="layui-form-label">{{ trans('state.account_name') }}</label>
						<div class="layui-input-inline">
							<input type="text" name="account_name" id="account_name" eventType=event-query value="{{$account_name}}" lay-verify="required" autocomplete="off" class="layui-input">
						</div>
						<div class="layui-input-inline checkbox">
							<input type="checkbox" name="sureblur" id="sureblur" lay-skin="switch" lay-text="精确|模糊" checked>
						</div>
                    </div>
                    <div class="layui-inline">
						<label class="layui-form-label">{{ trans('state.name') }}</label>
						<div class="layui-input-inline">
							<input type="text" name="name" id="name" eventType=event-query value="{{$name}}" lay-verify="required" autocomplete="off" class="layui-input">
						</div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">{{ trans('state.status') }}</label>
						<div class="layui-input-inline" style="width: 125px">
							<select name="status"  id="status"  lay-verify="" autocomplete="off" eventType=event-query class="layui-input" >
								<option value="">{{ trans('gamemenu.select_status') }}</option>
								@foreach(trans('status.money_take.status') as $k=>$v):
                                @if($k == $status)
                                    <option selected = "selected" value="{{$k}}">{{$v}}</option>
                                @else
                                    <option value="{{$k}}">{{$v}}</option>
                                @endif
								@endforeach
							</select>
						</div>

					</div>

					<div class="layui-inline">

						<label class="layui-form-label">{{ trans('state.betnum_area') }}</label>
						<div class="layui-input-inline" style="width: 100px;">
							<input type="text" name="betnum_small" id="betnum_small" value="{{$betnum_small}}" eventType=event-query placeholder="￥0" autocomplete="off" class="layui-input">
						</div>
						<div class="layui-form-mid">-</div>
						<div class="layui-input-inline" style="width: 100px;">
							<input type="text" name="betnum_big" id="betnum_big" value="{{$betnum_big}}" eventType=event-query placeholder="￥0" autocomplete="off" class="layui-input">
						</div>
                    </div>
                    <div class="layui-inline">
						<label class="layui-form-label">{{ trans('state.betmoney_area') }}</label>
						<div class="layui-input-inline" style="width: 100px;">
							<input type="text" name="betmoney_small" id="betmoney_small" value="{{$betmoney_small}}" eventType=event-query placeholder="￥0" autocomplete="off" class="layui-input">
						</div>
						<div class="layui-form-mid">-</div>
						<div class="layui-input-inline" style="width: 100px;">
							<input type="text" name="betmoney_big" id="betmoney_big" value="{{$betmoney_big}}" eventType=event-query placeholder="￥0" autocomplete="off" class="layui-input">
						</div>

				   </div>
				   <br>

                    <div class="layui-inline">
                        <label class="layui-form-label">{{ trans('state.star_time') }}</label>
                        <div class="layui-input-inline">
                            <input type="text" name="star_time" id="star_time" placeholder=" - " lay-verify=""
                                   @if($star_time == "" )
                                   value="{{trans('status.default_time.seven_day')}}"
                                   @else
                                   value="{{ $star_time }}"
                                   @endif
                                   autocomplete="off" class="layui-input test-item" eventType=event-query eventType=event-query>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">{{ trans('state.end_time') }}</label>
                        <div class="layui-input-inline">
                            <input type="text" name="end_time" id="end_time" placeholder=" - " lay-verify=""
                                   @if($end_time == "" )
                                   value="{{trans('status.default_time.etime')}}"
                                   @else
                                   value="{{ $end_time }}"
                                   @endif
                                   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;">重置</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>

                    <!-- &nbsp;&nbsp;&nbsp;&nbsp;<div class="layui-inline"><a href="javascript:openWin('/admin/user/infoAdd','{{ trans('menu.menu_add') }}','700px','500px')" class="layui-btn layui-btn-sm  ">添加</a></div>
                    <div class="layui-inline"><a href="/admin/menu/add" class="layui-btn layui-btn-sm  layui-btn-danger">删除</a></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
