99 lines
No EOL
4.3 KiB
PHP
Executable file
99 lines
No EOL
4.3 KiB
PHP
Executable file
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
<h4 class="font-weight-bold py-3 mb-1">
|
|
{{ __('Buchungen') }} FeWo
|
|
</h4>
|
|
|
|
<div class="card">
|
|
<div class="card-datatable table-responsive py-2">
|
|
<div class="mr-4 mb-2 text-right">
|
|
<a href="{{ route('travel_user_booking_fewo_detail', ['new']) }}" class="btn btn-sm btn-primary">Neue Buchung anlegen</a>
|
|
</div>
|
|
<table id="datatables-default" class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th style="max-width: 10px;"> </th>
|
|
<th>{{__('ID')}}</th>
|
|
<th>{{__('FeWo')}}</th>
|
|
<th>{{__('Kunde')}}</th>
|
|
<th>{{__('vom')}}</th>
|
|
<th>{{__('bis')}}</th>
|
|
<th>{{__('Eingetragen')}}</th>
|
|
<th>{{__('Mails')}}</th>
|
|
<th>{{__('Status')}}</th>
|
|
<th>{{__('Datum')}}</th>
|
|
<th>{{__('R.-Nr.')}}</th>
|
|
<th style="max-width: 60px;">{{__('delete')}}</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
<div class="mr-4 mt-2 text-right">
|
|
<a href="{{ route('travel_user_booking_fewo_detail', ['new']) }}" class="btn btn-sm btn-primary">Neue Buchung anlegen</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
$( document ).ready(function() {
|
|
$('#datatables-default').dataTable({
|
|
"processing": true,
|
|
"serverSide": true,
|
|
"searching": false,
|
|
"ajax": '{!! route('data_table_travel_user_booking_fewos') !!}',
|
|
"columns": [
|
|
{ data: 'action_edit', orderable: false, searchable: false},
|
|
{ data: 'id', name: 'id' },
|
|
{ data: 'fewo_lodging', name: 'fewo_lodging' },
|
|
{ data: 'travel_user', name: 'travel_user', orderable: false, },
|
|
{ data: 'from_date', name: 'from_date' },
|
|
{ data: 'to_date', name: 'to_date' },
|
|
{ data: 'is_calendar', name: 'is_calendar', orderable: false },
|
|
{ data: 'is_mail', name: 'is_mail', orderable: false },
|
|
{ data: 'status_name', name: 'status_name' },
|
|
{ data: 'booking_date', name: 'booking_date' },
|
|
{ data: 'invoice_number', name: 'invoice_number' },
|
|
{ data: 'action_delete', orderable: false, searchable: false},
|
|
],
|
|
"order": [[ 1, "desc" ]],
|
|
"bLengthChange": false,
|
|
"iDisplayLength": 50,
|
|
"language": {
|
|
"url": "/js/German.json"
|
|
},
|
|
/*
|
|
initComplete: function () {
|
|
this.api().columns(2).every( function () {
|
|
var column = this;
|
|
var title = $(column.header()).html();
|
|
var select = $('<select class="selectpicker"><option value="">'+title+'</option></select>')
|
|
.appendTo( $(column.header()).empty() )
|
|
.on( 'change', function () {
|
|
var val = $.fn.dataTable.util.escapeRegex(
|
|
$(this).val()
|
|
);
|
|
|
|
column
|
|
.search( val ? '^'+val+'$' : '', true, false )
|
|
.draw();
|
|
} );
|
|
column.data().unique().sort().each( function ( d, j ) {
|
|
if(d !== ""){
|
|
var text = $(d+' span').text();
|
|
if(text != "" && text != "-"){
|
|
select.append( '<option value="'+$(d).data('order')+'">'+ $(d+' span').text()+'</option>' );
|
|
}
|
|
}
|
|
} );
|
|
} );
|
|
|
|
$('.selectpicker').selectpicker();
|
|
}*/
|
|
});
|
|
$('#datatables-default').tooltip({selector: '[data-toggle="tooltip"]'});
|
|
});
|
|
</script>
|
|
|
|
|
|
|
|
@endsection |