@extends('vip.layouts')
@section('seo_title')
    {{ trans('menu.message') }}
@endsection
@section('content')

    <form class="layui-form" action="{{ url()->full() }}" id="submitForm" name="submitForm" method="post" eventType="eventForm">
        <div class="over">
            <table class="layui-table" lay-size="lg" style="margin-top: 0">
                <tbody>
                @foreach($data as $v)
                    <tr data-id="{{$v['id']}}">
                        <td>
                            <h2>{{$v['title']}}</h2>
                            <p> {{$v['add_time']}}</p>


                        </td>
                    </tr>
                    <tr>
                    <td>
                        {{$v['content']}}
                    </td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>

    </form>

    <script>
        //Demo
        layui.use(['form'], function(){
            var form = layui.form;

            //监听提交
            form.on('submit(submitForm)', function(data){
                return true;
            });
        });

    </script>
@endsection
