mein-sterntours/resources/views/iq/travel/programm/index.blade.php
Kevin Adametz 881fc84207 08 2024
2024-08-05 11:58:09 +02:00

64 lines
No EOL
2.2 KiB
PHP

@extends('layouts.layout-2')
@section('content')
<h4 class="font-weight-bold py-3 mb-4">
Reisebausteine / Programme
</h4>
<div class="card">
<div class="table-responsive-track" id="datatables-customer-scroll">
<div class="table-responsive-thumb" id="datatables-customer-thumb">
</div>
</div>
<div class="card-datatable table-responsive" id="datatables-customer-table">
<table class="datatables-customer table table-striped table-bordered" id="datatables-customer">
<thead>
<tr>
<th style="max-width: 60px;">&nbsp;</th>
<th>{{__('Name')}}</th>
<th>{{__('Typ')}}</th>
<th>{{__('Land')}}</th>
<th>{{__('sichbar')}}</th>
<th style="max-width: 60px;">&nbsp;</th>
</tr>
</thead>
</table>
</div>
<div class="ml-3 mb-2">
<a href="{{ route('iq_travel_programm_detail', ['new']) }}" class="btn btn-sm btn-primary">Neues Programm anlegen</a>
</div>
</div>
<script>
$( document ).ready(function() {
$('.datatables-customer').dataTable({
"processing": true,
"serverSide": true,
"ajax": '{!! route('data_table_travel_programms') !!}',
"order": [[ 1, "desc" ]],
"columns": [
{ data: 'action_edit', orderable: false, searchable: false},
{ data: 'name', name: 'name' },
{ data: 'typ', name: 'typ' },
{ data: 'country', name: 'country' },
{ data: 'active', name: 'active' },
{ data: 'action_delete', orderable: false, searchable: false},
],
"bLengthChange": false,
"iDisplayLength": 100,
"language": {
"url": "/js/German.json"
},
drawCallback: function () {
dataTableScrollTrack('#datatables-customer');
}
});
});
</script>
@endsection