60 lines
No EOL
2.1 KiB
PHP
Executable file
60 lines
No EOL
2.1 KiB
PHP
Executable file
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
|
|
<h4 class="font-weight-bold py-3 mb-4">
|
|
{{ __('Buchungen') }}
|
|
</h4>
|
|
|
|
<div class="card">
|
|
<div class="table-responsive-track" id="datatables-booking-scroll">
|
|
<div class="table-responsive-thumb" id="datatables-booking-thumb">
|
|
</div>
|
|
</div>
|
|
<div class="card-datatable table-responsive" id="datatables-booking-table">
|
|
<table class="datatables-bookings table table-striped table-bordered" id="datatables-booking">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th style="max-width: 60px;"> </th>
|
|
<th>{{__('Nr.')}}</th>
|
|
<th>{{__('Datum')}}</th>
|
|
<th>{{__('Reise')}}</th>
|
|
<th>{{__('Von')}}</th>
|
|
<th>{{__('Bis')}}</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' },
|
|
{ data: 'booking_date', name: 'booking_date', orderable: false, searchable: false },
|
|
{ data: 'title', name: 'title' },
|
|
{ data: 'start_date', name: 'start_date', orderable: false, searchable: false },
|
|
{ data: 'end_date', name: 'end_date', orderable: false, searchable: false },
|
|
],
|
|
"bLengthChange": false,
|
|
"iDisplayLength": 100,
|
|
"language": {
|
|
"url": "/js/German.json"
|
|
},
|
|
drawCallback: function () {
|
|
dataTableScrollTrack('#datatables-booking');
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
|
|
|
|
|
|
@endsection |