mein-sterntours/resources/views/booking/index.blade.php
Kevin Adametz c8948338bb 01 2020
2020-02-14 10:18:20 +01:00

53 lines
No EOL
1.7 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="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>
<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"
}
});
});
</script>
@endsection