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

58 lines
No EOL
1.9 KiB
PHP
Executable file

@extends('layouts.layout-2')
@section('content')
<h4 class="font-weight-bold py-3 mb-4">
{{ __('Kunden') }}
</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>{{__('KundenID')}}1</th>
<th>{{__('Vorname')}}</th>
<th>{{__('Nachname')}}</th>
<th>{{__('E-Mail')}}</th>
</tr>
</thead>
</table>
</div>
</div>
<script>
$( document ).ready(function() {
$('.datatables-customer').dataTable({
"processing": true,
"serverSide": true,
"ajax": '{!! route('data_table_customers') !!}',
"order": [[ 1, "desc" ]],
"columns": [
{ data: 'action_edit', orderable: false, searchable: false},
{ data: 'id', name: 'id' },
{ data: 'firstname', name: 'firstname' },
{ data: 'name', name: 'name' },
{ data: 'email', name: 'email' },
],
"bLengthChange": false,
"iDisplayLength": 100,
"language": {
"url": "/js/German.json"
},
drawCallback: function () {
dataTableScrollTrack('#datatables-customer');
}
});
});
</script>
@endsection