config->get("theme.modules.{$moduleKey}"); if (is_string($moduleSpecific) && $moduleSpecific !== '') { return Str::lower($moduleSpecific); } $global = $this->config->get('theme.active', 'default'); if (! is_string($global) || $global === '') { return 'default'; } return Str::lower($global); } public function view(string $module, string $name): string { $moduleKey = Str::lower($module); $activeTheme = $this->activeTheme($moduleKey); $primary = "{$moduleKey}::themes.{$activeTheme}.{$name}"; if (View::exists($primary)) { return $primary; } $defaultTheme = "{$moduleKey}::themes.default.{$name}"; if (View::exists($defaultTheme)) { return $defaultTheme; } return "{$moduleKey}::{$name}"; } }