/** * @return \Illuminate\View\View */ public function create() { $page_title = trans('admin/users/general.page.create.title'); // "Admin | User | Create"; $page_description = trans('admin/users/general.page.create.description'); // "Creating a new user"; $perms = $this->perm->pushCriteria(new PermissionsByNamesAscending())->all(); $user = new \App\User(); $themes = \Theme::getList(); $themes = Arr::indexToAssoc($themes, true); $time_zones = \DateTimeZone::listIdentifiers(); $time_zone = $user->settings()->get('time_zone', null); $tzKey = array_search($time_zone, $time_zones); $time_format = $user->settings()->get('time_format', null); $locales = Setting::get('app.supportedLocales'); return view('admin.users.create', compact('user', 'perms', 'themes', 'time_zones', 'tzKey', 'time_format', 'locales', 'page_title', 'page_description')); }