@extends('layouts.layout-2')

@section('content')

    <h4 class="font-weight-bold py-3 mb-4">
        {{ __('Buchungen') }}
    </h4>

    <div class="card">
        <div class="card-datatable table-responsive">
            <table class="datatables-bookings table table-striped table-bordered">

                <thead>
                <tr>
                    <th style="max-width: 60px;">&nbsp;</th>
                    <th>{{__('Nr.')}}</th>
                </tr>
                </thead>
            </table>
        </div>
    </div>

    <script>
        $( document ).ready(function() {
            $('.datatables-bookings').dataTable({
                "processing": true,
                "serverSide": true,
                "ajax": '{!! route('data_table_bookings') !!}',
                "order": [[ 1, "desc" ]],
                "columns": [
                    { data: 'action_edit', orderable: false, searchable: false},
                    { data: 'id', name: 'id' },
                ],
                "bLengthChange": false,
                "iDisplayLength": 50,
                "language": {
                    "url": "/js/German.json"
                }
            });

        });
    </script>



@endsection