43 lines
1017 B
PHP
43 lines
1017 B
PHP
@extends('layout')
|
|
|
|
@section('content')
|
|
|
|
<h1>Benutzer bearbeiten</h1>
|
|
<a href="{{url('admin/user/create')}}" class="btn btn-success">Benutzer hinzufügen</a>
|
|
|
|
|
|
<table id="example" class="display" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Name</th>
|
|
<th>E-Mail</th>
|
|
<th>Bearbeiten</th>
|
|
<th>Löschen</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
|
|
@endsection
|
|
|
|
|
|
@section('scripts')
|
|
<script>
|
|
$(document).ready(function(){
|
|
var table = $('#example').DataTable({
|
|
processing: true,
|
|
serverSide: true,
|
|
ajax: '{{ route('userData') }}',
|
|
"columnDefs": [
|
|
{
|
|
"targets": [ 1 ],
|
|
"visible": false,
|
|
"searchable": true
|
|
}
|
|
]
|
|
});
|
|
});
|
|
</script>
|
|
@endsection |