<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<!--begin::Container-->
<div class="container-xxl" id="kt_content_container">
<!--begin::Sitemap-->
<div class="card">
<!--begin::Body-->
<div class="card-body p-5 px-lg-19 py-lg-16">
<!--begin::Heading-->
<div class="mb-15">
<!--begin::Title-->
<h1 class="fs-2x text-dark mb-6"><?= __("Réglages")?></h1>
<!--end::Title-->
<!--begin::Text-->
<div class="fs-5 text-muted fw-bold"><?= __("Configurez et personnalisez votre environnement Nuasix")?></div>
<!--end::Text-->
</div>
<!--end::Heading-->
<!--begin::Row-->
<div class="row g-10 mb-15">
<?php
if( $user -> hasPrivilege("nx_editUser") || $user -> hasPrivilege("nx_editRole") || $user -> hasPrivilege("nx_editPermission") ) {
?>
<!--begin::Col-->
<div class="col-sm-4">
<!--begin::Title-->
<h3 class="fw-bolder text-dark mb-7"><?= __("Utilisateurs")?></h3>
<!--end::Title-->
<!--begin::Links-->
<div class="d-flex flex-column fw-bold fs-4">
<?= ($user -> hasPrivilege("nx_editUser") ? '<a href="index.php?page_slug=users-insights" class="link-primary mb-6">'.__("Utilisateurs").'</a>' : '') ?>
<?= ($user -> hasPrivilege("nx_editRole") ? '<a href="index.php?page_slug=roles" class="link-primary mb-6">'.__("Rôles").'</a>' : '') ?>
<?= ($user -> hasPrivilege("nx_editPermission") ? '<a href="index.php?page_slug=permissions" class="link-primary mb-6">'.__("Permissions").'</a>' : '') ?>
</div>
<!--end::Links-->
</div>
<!--end::Col-->
<?php
}
if( $user -> hasPrivilege("api_editFunction") || $user -> hasPrivilege("api_editForm") || $user -> hasPrivilege("api_editAuth") ) {
?>
<!--begin::Col-->
<div class="col-sm-4">
<!--begin::Title-->
<h3 class="fw-bolder text-dark mb-7"><?= __("API")?></h3>
<!--end::Title-->
<!--begin::Links-->
<div class="d-flex flex-column fw-bold fs-4">
<?= ($user -> hasPrivilege("api_editFunction") ? '<a href="index.php?page_slug=api_functions" class="link-primary mb-6">'.__("Fonctions").'</a>' : '') ?>
<?= ($user -> hasPrivilege("api_editForm") ? '<a href="index.php?page_slug=api_forms" class="link-primary mb-6">'.__("Formulaires").'</a>' : '') ?>
<?= ($user -> hasPrivilege("api_editAuth") ? '<a href="index.php?page_slug=api_authentifications" class="link-primary mb-6">'.__("Authentifications").'</a>' : '') ?>
</div>
<!--end::Links-->
</div>
<!--end::Col-->
<?php
}
if( $user -> hasPrivilege("nx_editProfilSearch") || $user -> hasPrivilege("nx_editProfilSetting") ) {
?>
<!--begin::Col-->
<div class="col-sm-4">
<!--begin::Title-->
<h3 class="fw-bolder text-dark mb-7"><?= __("Profils")?></h3>
<!--end::Title-->
<!--begin::Links-->
<div class="d-flex flex-column fw-bold fs-4">
<?= ($user -> hasPrivilege("nx_editProfilSearch") ? '<a href="index.php?page_slug=profile-searchs" class="link-primary mb-6">'.__("Profil de recherche").'</a>' : '') ?>
<?= ($user -> hasPrivilege("nx_editProfilSetting") ? '<a href="index.php?page_slug=profile-settings" class="link-primary mb-6">'.__("Profil de réglage").'</a>' : '') ?>
</div>
<!--end::Links-->
</div>
<!--end::Col-->
<?php
}
?>
</div>
<!--end::Row-->
<!--begin::Row-->
<div class="row g-10 mb-18">
<?php
if( $user -> hasPrivilege("nx_editTemplateEmail") || $user -> hasPrivilege("nx_editEntite") ) {
?>
<!--begin::Col-->
<div class="col-sm-4">
<!--begin::Title-->
<h3 class="fw-bolder text-dark mb-7"><?= __("Entités")?></h3>
<!--end::Title-->
<!--begin::Links-->
<div class="d-flex flex-column fw-bold fs-4">
<?= ($user -> hasPrivilege("nx_editEntite") ? '<a href="index.php?page_slug=entites" class="link-primary mb-6">'.__("Gestion entités").'</a>' : '') ?>
</div>
<!--end::Links-->
</div>
<!--end::Col-->
<?php
}
if( $user -> hasPrivilege("nx_editPlugin") || $user -> hasPrivilege("nx_editRessource") || $user -> hasPrivilege("nx_editFeature") || $user -> hasPrivilege("nx_editIcon") ) {
?>
<!--begin::Col-->
<div class="col-sm-4">
<!--begin::Title-->
<h3 class="fw-bolder text-dark mb-7"><?= __("Ressources")?></h3>
<!--end::Title-->
<!--begin::Links-->
<div class="d-flex flex-column fw-bold fs-4">
<?= ($user -> hasPrivilege("nx_editPlugin") ? '<a href="index.php?page_slug=plugins" class="link-primary mb-6">'.__("Plugins").'</a>' : '') ?>
<?= ($user -> hasPrivilege("nx_editRessource") ? '<a href="index.php?page_slug=resources" class="link-primary mb-6">'.__("Ressources").'</a>' : '') ?>
<?= ($user -> hasPrivilege("nx_editFeature") ? '<a href="index.php?page_slug=features" class="link-primary mb-6">'.__("Fonctionnalités").'</a>' : '') ?>
<?= ($user -> hasPrivilege("nx_editIcon") ? '<a href="index.php?page_slug=icons" class="link-primary mb-6">'.__("Icônes").'</a>' : '') ?>
</div>
<!--end::Links-->
</div>
<!--end::Col-->
<?php
}
if( $user -> hasPrivilege("nx_editAccount") ) {
?>
<!--begin::Col-->
<div class="col-sm-4">
<!--begin::Title-->
<h3 class="fw-bolder text-dark mb-7"><?= __("Compte")?></h3>
<!--end::Title-->
<!--begin::Links-->
<div class="d-flex flex-column fw-bold fs-4">
<?= ($user -> hasPrivilege("nx_editAccount") ? '<a href="index.php?page_slug=account" class="link-primary mb-6">'.__("Modifier mon compte").'</a>' : '') ?>
</div>
<!--end::Links-->
</div>
<!--end::Col-->
<?php
}
?>
</div>
<!--end::Row-->
<!--begin::Row-->
<div class="row g-10 mb-18">
<?php
if( $user -> hasPrivilege("nx_editMarketplace") || $user -> hasPrivilege("nx_editApplication") ) {
?>
<!--begin::Col-->
<div class="col-sm-4">
<!--begin::Title-->
<h3 class="fw-bolder text-dark mb-7"><?= __("Applications")?></h3>
<!--end::Title-->
<!--begin::Links-->
<div class="d-flex flex-column fw-bold fs-4">
<?= ($user -> hasPrivilege("nx_editMarketplace") ? '<a href="index.php?page_slug=marketplace" class="link-primary mb-6">'.__("Marketplace").'</a>' : '') ?>
<?= ($user -> hasPrivilege("nx_editApplication") ? '<a href="index.php?page_slug=application-single" class="link-primary mb-6">'.__("Paramètres").'</a>' : '') ?>
<?= ($user -> hasPrivilege("nx_editApplication") ? '<a href="index.php?page_slug=application-functions" class="link-primary mb-6">'.__("Fonctions").'</a>' : '') ?>
</div>
<!--end::Links-->
</div>
<!--end::Col-->
<?php
}
if( $user -> hasPrivilege("api_editManager") || $user -> hasPrivilege("nx_editManager") ) {
?>
<!--begin::Col-->
<div class="col-sm-4">
<!--begin::Title-->
<h3 class="fw-bolder text-dark mb-7"><?= __("Plugins")?></h3>
<!--end::Title-->
<!--begin::Links-->
<div class="d-flex flex-column fw-bold fs-4">
<?= ($user -> hasPrivilege("api_editManager") ? '<a href="plugins/dbManager/api_db_manager.php" class="link-primary mb-6">'.__("API - Manager").'</a>' : '') ?>
<?= ($user -> hasPrivilege("nx_editManager") ? '<a href="plugins/nxManager/nx_manager.php" class="link-primary mb-6">'.__("NX - Manager").'</a>' : '') ?>
</div>
<!--end::Links-->
</div>
<!--end::Col-->
<?php
}
if( $user -> hasPrivilege("nx_editReport") || $user -> hasPrivilege("nx_editTemplateEmail") ) {
?>
<!--begin::Col-->
<div class="col-sm-4">
<!--begin::Title-->
<h3 class="fw-bolder text-dark mb-7"><?= __("Modèles")?></h3>
<!--end::Title-->
<!--begin::Links-->
<div class="d-flex flex-column fw-bold fs-4">
<?= ($user -> hasPrivilege("nx_editReport") ? '<a href="index.php?page_slug=reports" class="link-primary mb-6">'.__("Modèles de rapport").'</a>' : '') ?>
<?= ($user -> hasPrivilege("nx_editTemplateEmail") ? '<a href="index.php?page_slug=templates" class="link-primary mb-6">'.__("Modèles de mail").'</a>' : '') ?>
</div>
<!--end::Links-->
</div>
<!--end::Col-->
<?php
}
?>
</div>
<!--end::Row-->
</div>
<!--end::Body-->
</div>
<!--end::Sitemap-->
</div>
<!--end::Container-->
</div>