@extends('vip.layouts')
@section('content')
    <style>
        .layui-laydate-range {
            width: auto;
        }
    </style>

    <script type="text/html" id="agent">
        @{{#if(d.status=='未读'){ }}
        <b style="color: red">@{{d.status}}</b>
        @{{#} }}
        @{{#if(d.status=='已读'){ }}
        <p>@{{d.status}}</p>
        @{{#} }}
    </script>
    <!---注单管理-->
    <div class="layui-row">

        <!-- <div class="layui-col-xs12 layui-col-sm2 layui-col-md2">
            <ul id="tree" class="tree-table-tree-box"></ul>
        </div>-->
        <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">

            <form class="layui-form rewrite" eventType="eventForm" action="">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">{{ trans('notice.title') }}</label>
                        <div class="layui-input-inline">
                            <input type="text" name="title" id="title" eventType="event-query"  value="{{ $title }}" lay-verify="required" autocomplete="off"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <a class="layui-btn layui-btn-sm lay-btn-diy" data-type="reload" eventType="event-query-submit"
                           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>
                    </div>
                    @if(checkRriv('/admin/MessageRead/delete'))<div class="layui-inline"><a href="javascript:delWin('/admin/MessageRead/delete?id=');" class="layui-btn layui-btn-sm  layui-btn-danger">删除</a></div>@endif
                </div>
            </form>
        </div>
        @push('dataTableJS')

            //重置表单
            $('.reset').on('click',function(){
            $('input').val('');
            $('#type').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')
        <link rel="stylesheet" href="{{ asset('/css/untablelist.css') }}"  />
    </div>
    </div>

@endsection
