@extends('layouts.admin')
@section('content')
        <!--左侧菜单栏-->
@include('admin.left-sidebar')
<!-- 内容 -->
<link rel="stylesheet" type="text/css" href="{{ url('/css/jquery.dataTables.min.css') }}">
<script type="text/javascript" charset="utf8" src="{{ url('/js/jquery.dataTables.min.js') }}"></script>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            表单统计
            <small>{{ $table_name }}</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="{{ url('/')}}"><i class="fa fa-dashboard"></i> 主页</a></li>
            <li><a href="#">表单统计</a></li>
        </ol>
    </section>
    <!-- Main content -->
    <section class="content">

        @yield('table')

    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->

<script>

    $(document).ready(function() {
        $('#table').dataTable({
            "aLengthMenu" : [ [ 10, 20, 50, -1 ], [ "10", "20", "50", "所有" ] ],
            "oLanguage" : {
                "sLengthMenu" : "每页显示 _MENU_ 条记录",
                "sZeroRecords" : "对不起，没有匹配的数据",
                "sInfo" : "第 _START_ - _END_ 条 / 共 _TOTAL_ 条数据",
                "sInfoEmpty" : "没有匹配的数据",
                "sInfoFiltered" : "(数据表中共 _MAX_ 条记录)",
                "sProcessing" : "正在加载中...",
                "sSearch" : "全文搜索：",
                "oPaginate" : {
                    "sFirst" : "第一页",
                    "sPrevious" : " 上一页 ",
                    "sNext" : " 下一页 ",
                    "sLast" : " 最后一页 "
                }
            }
        });
    });
</script>

@endsection