= $this->extend('_layout') ?>
= $this->section('title') ?>
= lang('User.all_users') ?>
= $this->endSection() ?>
= $this->section('pageTitle') ?>
= lang('User.all_users') ?> (= count($users) ?>)
= $this->endSection() ?>
= $this->section('headerRight') ?>
= lang('User.create') ?>
= $this->endSection() ?>
= $this->section('content') ?>
= data_table(
[
[
'header' => lang('User.list.user'),
'cell' => function ($user) {
return '
' .
esc($user->username) .
'' .
$user->email .
'
';
},
],
[
'header' => lang('User.list.role'),
'cell' => function ($user) {
$role = get_group_info(get_instance_group($user))['title'];
if ((bool) $user->is_owner) {
$role = '' . icon('shield-user-fill') . '' . $role . '
';
}
// @icon('pencil-fill')
return $role . '' . lang('User.edit_role', [
'username' => esc($user->username),
]) . '';
},
],
[
'header' => lang('Common.actions'),
'cell' => function ($user) {
return '' .
'';
},
],
],
$users,
) ?>
= $this->endSection() ?>