FleetCart/Modules/User/Resources/views/admin/users/index.blade.php
2023-06-11 13:14:03 +01:00

43 lines
1.5 KiB
PHP

@extends('admin::layout')
@component('admin::components.page.header')
@slot('title', trans('user::users.users'))
<li class="active">{{ trans('user::users.users') }}</li>
@endcomponent
@component('admin::components.page.index_table')
@slot('buttons', ['create'])
@slot('resource', 'users')
@slot('name', trans('user::users.user'))
@slot('thead')
<tr>
@include('admin::partials.table.select_all')
<th>{{ trans('admin::admin.table.id') }}</th>
<th>{{ trans('user::users.table.first_name') }}</th>
<th>{{ trans('user::users.table.last_name') }}</th>
<th>{{ trans('user::users.table.email') }}</th>
<th>{{ trans('user::users.table.last_login') }}</th>
<th data-sort>{{ trans('admin::admin.table.created') }}</th>
</tr>
@endslot
@endcomponent
@push('scripts')
<script>
new DataTable('#users-table .table', {
columns: [
{ data: 'checkbox', orderable: false, searchable: false, width: '3%' },
{ data: 'id', width: '5%' },
{ data: 'first_name', name: 'first_name' },
{ data: 'last_name', name: 'last_name' },
{ data: 'email', name: 'email' },
{ data: 'last_login', name: 'last_login', searchable: false },
{ data: 'created', name: 'created_at' },
]
});
</script>
@endpush