@extends('layout.adminapp')
@section('page-css')
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.25/css/dataTables.bootstrap4.min.css">
<link href="{{ asset('css/buttons.bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ asset('css/buttons.dataTables.min.css') }}" rel="stylesheet">
{{-- <link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.0.3/css/buttons.dataTables.min.css"> --}}
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.6.2/css/buttons.dataTables.min.css" />
@endsection
@section('page-content')

<section class="content mb-5">

    <div class="content-inner content-docs">
        <div class="row">
            <div class="col-12">
                <div class="card mb-5">

                    <div class="card-body">
                        <div class="row">
                            <div class="col-lg-4 mx-auto">
                                @include('layout.alert')
                            </div>
                        </div>
                        <div class="collapse" id="collapseExample">

                        </div>
                        <div class="table-responsive">
                            {{$dataTable->table(['class' => 'table table-bordered table-striped table-centered table-hover w-100 dt-responsive nowrap mb-0',])}}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    @endsection

    @section('page-js')

    <script type="text/javascript">
        // $('.buttons-excel').click(function(){
        //   console.log('clieck pdf');
        // });
        $(".buttons-excel").click(function() {
            alert("Handler for .click() called.");
        });

    </script>
    <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
    <script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js"></script>
    <script src="{!! asset('vendor/datatables/buttons.server-side.js') !!}"></script>
    <script src="{!! asset('js/dataTables.buttons.min.js') !!}"></script>
    <script src="{!! asset('js/buttons.server-side.js') !!}"></script>
    {{$dataTable->scripts()}}

    @endsection
