mein-sterntours/resources/views/admin/users.blade.php
2019-04-10 17:38:52 +02:00

74 lines
No EOL
2.2 KiB
PHP

@extends('layouts.layout-2')
@section('content')
<h4 class="font-weight-bold py-3 mb-4">
{{ __('User') }}
</h4>
<div class="card">
<div class="card-datatable table-responsive">
<table class="datatables-users table table-striped table-bordered">
<thead>
<tr>
<th>{{__('edit')}}</th>
<th>{{__('Name')}}</th>
<th>{{__('E-Mail')}}</th>
<th>{{__('Zugang')}}</th>
<th>{{__('verified')}}</th>
<th>{{__('active')}}</th>
<th>{{__('delete')}}</th>
</tr>
</thead>
</table>
</div>
</div>
<div id="updateModalShow" class="modal fade in" tabindex="-1" role="dialog" aria-labelledby="myModalUpdate" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content" id="update-modal-content">
</div>
</div>
</div>
<script>
$( document ).ready(function() {
$('.datatables-users').dataTable({
"processing": true,
"serverSide": true,
"ajax": '{!! route('admin_users_data_table') !!}',
"columns": [
{ data: 'action_edit', orderable: false, searchable: false},
{ data: 'name', name: 'name' },
{ data: 'email', name: 'email' },
{ data: 'admin', name: 'admin' },
{ data: 'confirmed', name: 'confirmed' },
{ data: 'active', name: 'active' },
{ data: 'action_delete', orderable: false, searchable: false},
],
"bLengthChange": false,
"iDisplayLength": 50,
"language": {
"url": "/js/German.json"
},
"initComplete": function(settings, json) {
$(".update_modal_data_show").on('click', function (e) {
e.preventDefault();
update_modal_data_show(e, $(this));
});
}
});
});
</script>
@endsection