<?php

/**
 * Dx
 *
 * @link http://dennesabing.com
 * @author Dennes B Abing <*****@*****.**>
 * @license proprietary
 * @copyright Copyright (c) 2015 ClaremontDesign/MadLabs-Dx
 * @version 0.0.0.1
 * @since Mar 8, 2016 10:37:59 AM
 * @file widget.php
 * @project Expression project.name is undefined on line 13, column 15 in Templates/Scripting/EmptyPHP.php.
 * @package Expression package is undefined on line 14, column 15 in Templates/Scripting/EmptyPHP.php.
 *
 */
return ['type' => 'view', 'enable' => true, 'config' => ['view' => ['layout' => 'default', 'file' => function () {
    return zbase_view_file_module('commons.views.empty', 'commons', 'package');
}]]];
示例#2
0
    $page['title'] = '<span class="userDisplayName' . $selectedUser->id() . '">' . $selectedUser->roleTitle() . ' - ' . $selectedUser->id() . ': ' . $selectedUser->displayName() . '</span>' . $selectedUser->statusText();
    $page['headTitle'] = $selectedUser->displayName();
    $page['subTitle'] = $selectedUser->email() . '|' . $selectedUser->username() . '|' . $selectedUser->cityStateCountry();
    zbase_view_page_details(['page' => $page]);
    $breadcrumbs = [['label' => 'Users', 'route' => ['name' => 'admin.users']], ['label' => '<span class="userDisplayName' . $selectedUser->id() . '">' . $selectedUser->displayName() . '</span>', 'link' => '#', 'title' => $selectedUser->displayName()]];
    zbase_view_breadcrumb($breadcrumbs);
} else {
    $selectedUser = zbase_auth_user();
}
$accountTabs = [];
$accountContents = [];
$accountContents[] = ['position' => 10, 'groupId' => 'information', 'content' => function () use($selectedUser) {
    return zbase_view_render(zbase_view_file_module('account.views.information', 'account', 'zbase'), ['user' => $selectedUser]);
}];
$accountContents[] = ['position' => 10, 'groupId' => 'notification', 'content' => function () use($selectedUser) {
    return zbase_view_render(zbase_view_file_module('account.views.notifications', 'account', 'zbase'), ['user' => $selectedUser]);
}];
$accountContents = zbase_module_widget_contents('account', 'account', zbase_section(), $adminView, null, $accountContents);
$accountTabs = zbase_module_widget_contents('account', 'account', zbase_section(), $adminView, 'tabs');
$widgetConfig = ['config' => ['entity' => ['entity' => $selectedUser]]];
?>
<div class="zbase-ui-wrapper zbase-ui-tabs" id="zbase-ui-tabs-accounttabs">
	<ul class="nav nav-tabs">
		<li class=""><a data-toggle="tab" href="#accounttabsaccountInformation">Account Information</a></li>
		<?php 
if (!empty($accountTabs)) {
    ?>
			<?php 
    foreach ($accountTabs as $accountTab) {
        ?>
				<?php 
<?php

/**
 * Dx
 *
 * @link http://dennesabing.com
 * @author Dennes B Abing <*****@*****.**>
 * @license proprietary
 * @copyright Copyright (c) 2015 ClaremontDesign/MadLabs-Dx
 * @version 0.0.0.1
 * @since Aug 22, 2016 4:02:17 PM
 * @file maintenance.blade.php
 * @project Zbase
 * @package Expression package is undefined on line 14, column 15 in Templates/Scripting/EmptyPHP.php.
 */
echo zbase_view_render(zbase_view_file_module('system.views.maintenance-button', 'system', 'zbase'));
?>

<hr />

<?php 
echo zbase_widget('system-maintenance-form');
<?php

/**
 * Dx
 *
 * @link http://dennesabing.com
 * @author Dennes B Abing <*****@*****.**>
 * @license proprietary
 * @copyright Copyright (c) 2015 ClaremontDesign/MadLabs-Dx
 * @version 0.0.0.1
 * @since Mar 8, 2016 10:37:59 AM
 * @file widget.php
 * @project Expression project.name is undefined on line 13, column 15 in Templates/Scripting/EmptyPHP.php.
 * @package Expression package is undefined on line 14, column 15 in Templates/Scripting/EmptyPHP.php.
 *
 */
return ['type' => 'view', 'enable' => true, 'config' => ['access' => 'only::sudo', 'view' => ['layout' => 'default', 'file' => zbase_view_file_module('system.views.maintenance', 'system', 'zbase')], 'entity' => ['name' => 'user', 'filter' => ['currentUser' => true], 'node' => ['enable' => true]]]];
示例#5
0
<?php

/**
 * Dx
 *
 * @link http://dennesabing.com
 * @author Dennes B Abing <*****@*****.**>
 * @license proprietary
 * @copyright Copyright (c) 2015 ClaremontDesign/MadLabs-Dx
 * @version 0.0.0.1
 * @since Mar 5, 2016 11:51:42 PM
 * @file module.php
 * @project Expression project.name is undefined on line 13, column 15 in Templates/Scripting/EmptyPHP.php.
 * @package Expression package is undefined on line 14, column 15 in Templates/Scripting/EmptyPHP.php.
 *
 */
return ['id' => 'angular', 'enable' => false, 'access' => 'admin', 'class' => null, 'backend' => false, 'frontend' => false, 'url' => ['backend' => 'a-{action?}'], 'routes' => ['angular-js' => ['url' => 'admin/zbase-angular.js', 'view' => ['enable' => true, 'layout' => 'blank', 'name' => 'type.js', 'content' => function () {
    return zbase_view_render(zbase_view_file_module('angular.views.back.mobile.js'));
}]], 'admin-angular-mobile-sidebar' => ['backend' => true, 'url' => 'admin/mobile/angular/sidebar.html', 'view' => ['enable' => true, 'layout' => 'blank', 'name' => 'type.html', 'content' => function () {
    return zbase_view_render(zbase_view_file_module('angular.views.back.mobile.templates.sidebar'));
}], 'middleware' => ['admin' => true]], 'admin-angular-mobile-sidebar-right' => ['backend' => true, 'url' => 'admin/mobile/angular/sidebar-right.html', 'view' => ['enable' => true, 'layout' => 'blank', 'name' => 'type.html', 'content' => function () {
    return zbase_view_render(zbase_view_file_module('angular.views.back.mobile.templates.sidebar-right'));
}], 'middleware' => ['admin' => true]], 'admin-angular-mobile-dashboard-template' => ['backend' => true, 'url' => 'admin/mobile/angular/dashboard.html', 'view' => ['enable' => true, 'layout' => 'blank', 'name' => 'type.html', 'content' => function () {
    return zbase_view_render(zbase_view_file_module('angular.views.back.mobile.templates.dashboard'));
}], 'middleware' => ['admin' => true]]], 'angular' => ['mobile' => ['backend' => ['routeProvider' => [['url' => '/', 'templateUrl' => function () {
    return zbase_url_from_route('admin-angular-mobile-dashboard-template', [], true);
}, 'controller' => 'adminDashboardController']], 'controllers' => [['controller' => 'adminDashboardController', 'view' => ['file' => function () {
    return zbase_view_render(zbase_view_file_module('angular.views.back.mobile.controllers.adminDashboardController'));
}]]]]]], 'widgets' => ['back' => ['controller' => ['action' => []]]]];
<?php

/**
 * Dx
 *
 * @link http://dennesabing.com
 * @author Dennes B Abing <*****@*****.**>
 * @license proprietary
 * @copyright Copyright (c) 2015 ClaremontDesign/MadLabs-Dx
 * @version 0.0.0.1
 * @since Aug 23, 2016 6:00:01 PM
 * @file notifications.blade.php
 * @project Zbase
 * @package Expression package is undefined on line 14, column 15 in Templates/Scripting/EmptyPHP.php.
 */
if (zbase()->telegram()->isEnabled() && zbase_config_get('modules.account.widgets.account.tab.telegram', true)) {
    ?>
	<?php 
    echo zbase_view_render(zbase_view_file_module('account.views.telegram-user', 'account', 'zbase'), ['user' => zbase_auth_user()]);
}
 * @link http://dennesabing.com
 * @author Dennes B Abing <*****@*****.**>
 * @license proprietary
 * @copyright Copyright (c) 2015 ClaremontDesign/MadLabs-Dx
 * @version 0.0.0.1
 * @since Aug 23, 2016 4:12:15 PM
 * @file accountinfo.blade.php
 * @project ZbaseAgse
 * @package Expression package is undefined on line 14, column 15 in Templates/Scripting/EmptyPHP.php.
 */
$addressCoverage = null;
$roleTitle = $user->roleTitle();
$isAdmin = zbase_auth_user()->isAdmin();
$contents = [];
$contents[] = ['position' => 10, 'content' => function () use($user) {
    return zbase_view_render(zbase_view_file_module('account.views.accountInformation', 'account', 'zbase'), ['user' => $user]);
}];
$contents = zbase_module_widget_contents('account', 'account', zbase_section(), $isAdmin, 'informationInner', $contents);
?>
<div class="row">
	<div class="col-md-2">
		<img class="img-responsive thumbnail" src="<?php 
echo $user->avatarUrl();
?>
" alt="<?php 
echo $user->displayName();
?>
">
	</div>
	<div class="col-md-10">
		<?php 
示例#8
0
 * @copyright Copyright (c) 2015 ClaremontDesign/MadLabs-Dx
 * @version 0.0.0.1
 * @since Mar 8, 2016 10:37:59 AM
 * @file widget.php
 * @project Expression project.name is undefined on line 13, column 15 in Templates/Scripting/EmptyPHP.php.
 * @package Expression package is undefined on line 14, column 15 in Templates/Scripting/EmptyPHP.php.
 *
 */
return ['type' => 'form', 'enable' => function () {
    return zbase_config_get('modules.account.enable', true);
}, 'config' => ['form_tab' => false, 'entity' => ['name' => 'user', 'method' => 'currentUser', 'repo' => ['method' => 'currentUser']], 'event' => ['index' => ['post' => ['redirect' => ['enable' => false]]]], 'tabs' => ['account' => ['type' => 'tab', 'label' => 'Profile', 'id' => 'profile', 'group' => 'accountTab', 'enable' => function () {
    return zbase_config_get('modules.account.widgets.account.tab.account', true);
}, 'position' => 100, 'formConfiguration' => ['form' => ['startTag' => ['action' => zbase_url_from_current(), 'html' => ['attributes' => ['class' => ['zbase-ajax-form']]]]]], 'elements' => ['first_name' => ['type' => 'text', 'id' => 'first_name', 'enable' => true, 'label' => 'First Name', 'angular' => ['ngModel' => ['prefix' => 'currentUser.profile']], 'entity' => ['property' => 'first_name']], 'last_name' => ['type' => 'text', 'id' => 'last_name', 'enable' => true, 'label' => 'Last Name', 'angular' => ['ngModel' => ['prefix' => 'currentUser.profile']], 'entity' => ['property' => 'last_name']]]], 'notifications' => ['type' => 'tab', 'label' => 'Notifications', 'id' => 'notifications', 'group' => 'accountTab', 'enable' => function () {
    return zbase_config_get('modules.account.widgets.account.tab.notifications', true);
}, 'position' => 9996, 'contents' => ['notifications' => function () {
    return zbase_view_render(zbase_view_file_module('account.views.notifications', 'account', 'zbase'), ['user' => zbase_auth_user()]);
}], 'formConfiguration' => ['submit' => ['button' => ['enable' => false]]]], 'username' => ['type' => 'tab', 'label' => 'Username', 'id' => 'username', 'group' => 'accountTab', 'enable' => function () {
    return zbase_config_get('modules.account.widgets.account.tab.username', true);
}, 'formConfiguration' => ['form' => ['startTag' => ['action' => zbase_url_from_current(), 'html' => ['attributes' => ['class' => ['zbase-ajax-form']]]]]], 'elements' => ['username' => ['type' => 'text', 'id' => 'username', 'enable' => function () {
    return zbase_config_get('auth.username.enable', false);
}, 'label' => 'Username', 'entity' => ['property' => 'username'], 'angular' => ['ngModel' => 'currentUser.username'], 'validations' => ['required' => ['enable' => true, 'message' => 'Username is required.'], 'unique' => ['enable' => true, 'text' => function () {
    return 'unique:' . zbase_entity('user')->getTable() . ',username,' . zbase_auth_user()->id() . ',user_id';
}, 'message' => 'Username already exists.'], 'regex' => ['enable' => true, 'text' => function () {
    return 'regex:/^[a-z][a-z0-9]{5,31}$/';
}, 'message' => 'Invalid username.'], 'min' => ['enable' => true, 'text' => function () {
    return 'min:5';
}, 'message' => 'Username should be of 5 up to 32 characters.'], 'max' => ['enable' => true, 'text' => function () {
    return 'max:32';
}, 'message' => 'Username should be of 5 up to 32 characters.'], 'not_in' => ['enable' => true, 'text' => function () {
    $notAllowedUsernames = (require zbase_path_library('notallowedusernames.php'));
    $notAllowedUsernames[] = zbase_auth_user()->username();
示例#9
0
<?php

/**
 * Dx
 *
 * @link http://dennesabing.com
 * @author Dennes B Abing <*****@*****.**>
 * @license proprietary
 * @copyright Copyright (c) 2015 ClaremontDesign/MadLabs-Dx
 * @version 0.0.0.1
 * @since Mar 8, 2016 10:37:59 AM
 * @file widget.php
 * @project Expression project.name is undefined on line 13, column 15 in Templates/Scripting/EmptyPHP.php.
 * @package Expression package is undefined on line 14, column 15 in Templates/Scripting/EmptyPHP.php.
 *
 */
return ['type' => 'view', 'enable' => function () {
    return zbase_config_get('modules.users.widgets.admin-user', true);
}, 'config' => ['entity' => ['node' => ['enable' => true], 'name' => 'user', 'repo' => ['byId' => ['route' => 'id']]], 'html' => ['content' => ['pre' => ['enable' => true, 'html' => function () {
    return zbase_widget('admin-users', [], true, ['config' => ['searchable' => ['onload' => false]]]);
}]]], 'view' => ['layout' => 'default', 'file' => function () {
    return zbase_view_file_module('account.views.account', 'account', 'zbase');
}]]];
<?php

/**
 * Dx
 *
 * @link http://dennesabing.com
 * @author Dennes B Abing <*****@*****.**>
 * @license proprietary
 * @copyright Copyright (c) 2015 ClaremontDesign/MadLabs-Dx
 * @version 0.0.0.1
 * @since Mar 8, 2016 10:37:59 AM
 * @file widget.php
 * @project Expression project.name is undefined on line 13, column 15 in Templates/Scripting/EmptyPHP.php.
 * @package Expression package is undefined on line 14, column 15 in Templates/Scripting/EmptyPHP.php.
 *
 */
return ['type' => 'placeholder', 'config' => ['enable' => true, 'access' => 'users', 'view' => ['file' => zbase_view_file_module('system.views.maintenance-notice', 'system', 'zbase')], 'placeholder' => 'admin-dashboard']];
示例#11
0
 */
return ['id' => 'users', 'enable' => function () {
    return zbase_config_get('modules.users.enable', true);
}, 'access' => 'admin', 'class' => null, 'backend' => true, 'frontend' => false, 'url' => ['backend' => 'users/{action?}/{id?}'], 'navigation' => ['back' => ['enable' => true, 'nav' => ['route' => ['name' => 'admin.users'], 'icon' => 'fa fa-users', 'label' => 'Users', 'title' => 'Manage Users']]], 'api' => ['users.logout' => ['enable' => true, 'class' => \Zbase\Entity\Laravel\User\Api::class, 'method' => 'logout']], 'routes' => ['admin-users-template' => ['url' => 'admin/templates/users.html', 'view' => ['enable' => true, 'layout' => 'blank', 'name' => 'type.html', 'content' => function () {
    $angularDatatable = zbase_angular_widget_datatable('users', 'admin-users');
    $string = null;
    if (!empty($angularDatatable['template'])) {
        $string = $angularDatatable['template'];
    }
    return $string;
}]], 'admin-user-template' => ['url' => 'admin/users/view']], 'angular' => ['backend' => ['routeProvider' => [['url' => function () {
    return zbase_angular_route('admin.users', [], true);
}, 'templateUrl' => function () {
    return zbase_angular_template_url('admin-users-template', []);
}, 'controller' => 'adminUsersController'], ['url' => function () {
    return zbase_angular_route('admin.users', ['action' => 'view'], true) . '/:itemId';
}, 'templateUrl' => function () {
    return zbase_url_from_route('admin-user-template', [], true);
}, 'controller' => 'adminUsersController']], 'controllers' => [['controller' => 'adminUsersController', 'view' => ['file' => function () {
    return zbase_view_render(zbase_view_file_module('users.views.angular.controllers.adminUsersController'));
}]]]]], 'controller' => ['back' => ['action' => ['index' => ['page' => ['title' => 'Manage Users', 'headTitle' => 'Manage Users', 'subTitle' => '', 'breadcrumbs' => [['label' => 'Users', 'link' => '#']]]], 'view' => ['page' => ['title' => 'Manage Users', 'headTitle' => 'Manage Users', 'subTitle' => '', 'breadcrumbs' => [['label' => 'Users', 'name' => 'admin.users']]]]]]], 'event' => [], 'widgets' => ['back' => ['controller' => ['action' => ['index' => ['admin-users' => null], 'json-index' => ['admin-users' => null], 'view' => ['admin-user' => null], 'json-view' => ['admin-user' => null], 'json-status' => ['admin-user-status' => null], 'json-email' => function () {
    return zbase_config_get('modules.account.widgets.controller.email', ['admin-user-email' => null]);
}, 'json-password' => function () {
    return zbase_config_get('modules.account.widgets.controller.password', ['admin-user-password' => null]);
}, 'json-username' => function () {
    return zbase_config_get('modules.account.widgets.controller.username', ['admin-user-username' => null]);
}, 'json-profile' => function () {
    return zbase_config_get('modules.account.widgets.controller.profile', ['admin-user-profile' => null]);
}, 'image' => function () {
    return zbase_config_get('modules.account.widgets.controller.image', ['admin-user-image' => null]);
}]]]]];
示例#12
0
 *
 */
return ['id' => 'notifications', 'enable' => true, 'access' => 'users', 'class' => null, 'backend' => true, 'frontend' => false, 'url' => ['backend' => 'notifications/{action?}/{id?}/{task?}'], 'notification' => ['back' => [['enable' => true, 'id' => 'notifications', 'order' => 9999, 'route' => ['name' => 'admin.notifications'], 'icon' => 'fa fa-warning', 'label' => 'Notifications', 'title' => 'Notifications', 'viewAllText' => 'See all notifications', 'badgeCount' => function () {
    $notifications = count(zbase_auth_user()->notificationsNotNotified());
    if (!empty($notifications)) {
        return $notifications;
    }
    return null;
}, 'defaultMessage' => function () {
    $notifications = count(zbase_auth_user()->notificationsNotNotified());
    if (!empty($notifications)) {
        return 'You have ' . $notifications . ' new notifications.';
    }
    return 'No new notifications.';
}, 'height' => '250px', 'defaultContent' => function () {
    zbase_view_script_add('mnotifications-script', zbase_view_render(zbase_view_file_module('notifications.views.js', 'notifications', 'zbase')), true);
    $notifications = zbase_auth_user()->notificationsLatest();
    if (!empty($notifications)) {
        $string = '';
        foreach ($notifications as $notification) {
            $string .= '<li data-id="' . $notification->id() . '" id="notifications-list-' . $notification->id() . '">
								<a href="' . $notification->url() . '">
									<span class="label label-sm label-icon label-' . $notification->displayColor() . '">
										<i class="fa ' . $notification->displayIcon() . '"></i>
									</span>
									 ' . $notification->displayMessage() . '
									<span class="time">
										 ' . $notification->displayTime() . '
									</span>
								</a>
							</li>';
示例#13
0
<?php

/**
 * Dx
 *
 * @link http://dennesabing.com
 * @author Dennes B Abing <*****@*****.**>
 * @license proprietary
 * @copyright Copyright (c) 2015 ClaremontDesign/MadLabs-Dx
 * @version 0.0.0.1
 * @since Mar 5, 2016 11:51:42 PM
 * @file dsstore/module.php
 *
 */
return ['id' => 'commons', 'enable' => true, 'backend' => false, 'frontend' => false, 'url' => [], 'routes' => ['lib_geo_ph' => ['usernameRouteCheck' => false, 'url' => 'lib/geo/ph/cities.js', 'view' => ['enable' => true, 'layout' => 'blank', 'name' => 'type.js', 'content' => function () {
    return zbase_view_render(zbase_view_file_module('commons.views.lib.geo.ph', 'commons', 'zbase'));
}]]]];
示例#14
0
}, 'message' => 'Email address already exists.'], 'not_in' => ['enable' => true, 'text' => function () {
    return 'not_in:' . zbase_auth_user()->email;
}, 'message' => 'Please provide a different email address.']], 'name' => 'Email Address'], 'accountpassword' => ['validations' => ['required' => ['enable' => true], 'accountPassword' => ['enable' => true, 'message' => 'Account password don\'t match.']], 'name' => 'Account Password']]], 'user.updatePassword' => ['enable' => true, 'class' => \Zbase\Entity\Laravel\User\Api::class, 'method' => 'updatePassword', 'requestMethod' => 'post', 'notParams' => ['userId'], 'params' => ['password' => ['label' => 'New Password', 'validations' => ['required' => ['enable' => true, 'message' => 'A new password is required.'], 'min' => ['enable' => true, 'text' => 'min:6', 'message' => 'Password too short.'], 'passwordStrengthCheck' => ['enable' => true, 'message' => 'Password is too weak.']]], 'passwordConfirm' => ['label' => 'Confirm New Password', 'validations' => ['required_with' => ['enable' => true, 'text' => 'required_with:password', 'message' => 'Please verify new password.'], 'same' => ['enable' => true, 'text' => 'same:password', 'message' => 'New passwords are not the same.']]], 'accountpassword' => ['validations' => ['required' => ['enable' => true], 'accountPassword' => ['enable' => true, 'message' => 'Account password don\'t match.']], 'label' => 'Account Password']]], 'user.logout' => ['enable' => true, 'class' => \Zbase\Entity\Laravel\User\Api::class, 'method' => 'logout'], 'user.current' => ['enable' => true, 'class' => \Zbase\Entity\Laravel\User\Api::class, 'method' => 'current']], 'navigation' => ['back' => ['enable' => true, 'nav' => ['order' => 1, 'route' => ['name' => 'admin.account'], 'icon' => 'fa fa-user', 'label' => 'Account', 'title' => 'Account Settings']]], 'routes' => [], 'angular' => ['mobile' => ['backend' => ['routeProvider' => [['url' => function () {
    return zbase_angular_route('admin.account', [], true);
}, 'templateUrl' => function () {
    return zbase_angular_template_url('account', [], true);
}, 'controller' => 'adminAccountMainController'], ['url' => function () {
    return zbase_angular_route('admin.logout', [], true);
}, 'controller' => 'adminAccountMainController'], ['auth' => false, 'url' => '/', 'templateUrl' => function () {
    return zbase_angular_template_url('admin.login', [], true);
}, 'controller' => 'adminAuthController']], 'controllers' => [['controller' => 'mainController', 'view' => ['file' => function () {
    return zbase_view_render(zbase_view_file_module('account.views.angular.back.mobile.controllers.mainController'));
}]], ['controller' => 'adminAccountMainController', 'view' => ['file' => function () {
    return zbase_view_render(zbase_view_file_module('account.views.angular.back.mobile.controllers.adminAccountMainController'));
}]], ['auth' => false, 'controller' => 'adminAuthController', 'view' => ['file' => function () {
    return zbase_view_render(zbase_view_file_module('account.views.angular.back.mobile.controllers.adminAuthController'));
}]]]]]], 'controller' => ['back' => ['action' => ['index' => ['page' => ['title' => 'Account Information', 'headTitle' => 'Account', 'subTitle' => 'Manage account and login information', 'breadcrumbs' => [['label' => 'Account', 'link' => '#']]]]]], 'front' => ['action' => ['index' => ['page' => ['title' => 'Account Information', 'headTitle' => 'Account', 'subTitle' => 'Manage account and login information', 'breadcrumbs' => [['label' => 'Account', 'link' => '#']]]]]]], 'widgets' => ['controller' => ['index' => function () {
    return zbase_config_get('modules.account.widgets.controller.index', ['account' => null]);
}, 'json-email' => function () {
    return zbase_config_get('modules.account.widgets.controller.email', ['account-email' => null]);
}, 'json-password' => function () {
    return zbase_config_get('modules.account.widgets.controller.password', ['account-password' => null]);
}, 'json-username' => function () {
    return zbase_config_get('modules.account.widgets.controller.username', ['account-username' => null]);
}, 'json-profile' => function () {
    return zbase_config_get('modules.account.widgets.controller.profile', ['account-profile' => null]);
}, 'image' => function () {
    return zbase_config_get('modules.account.widgets.controller.image', ['account-image' => null]);
}, 'resend-email-verification' => function () {
    zbase_auth_user()->resendEmailVerificationCode();
    return zbase_redirect()->to(zbase_url_previous());