|
5 | 5 | use BezhanSalleh\FilamentShield\Facades\FilamentShield; |
6 | 6 | use BezhanSalleh\FilamentShield\FilamentShieldPlugin; |
7 | 7 | use BezhanSalleh\FilamentShield\Middleware\SyncShieldTenant; |
8 | | -use BezhanSalleh\PanelSwitch\PanelSwitch; |
9 | 8 | use DutchCodingCompany\FilamentDeveloperLogins\FilamentDeveloperLoginsPlugin; |
10 | 9 | use Eclipse\Common\CommonPlugin; |
11 | 10 | use Eclipse\Common\Providers\GlobalSearchProvider; |
|
16 | 15 | use Eclipse\Core\Models\Site; |
17 | 16 | use Eclipse\Core\Models\User; |
18 | 17 | use Eclipse\Core\Services\Registry; |
| 18 | +use Eclipse\Core\View\Components\BrandWithTenantSwitcher; |
19 | 19 | use Eclipse\World\EclipseWorld; |
20 | 20 | use Filament\Http\Middleware\Authenticate; |
21 | 21 | use Filament\Http\Middleware\DisableBladeIconComponents; |
|
41 | 41 | use Illuminate\Support\Facades\Blade; |
42 | 42 | use Illuminate\Support\Facades\Schema; |
43 | 43 | use Illuminate\View\Middleware\ShareErrorsFromSession; |
44 | | -use Illuminate\View\View; |
45 | 44 | use LaraZeus\SpatieTranslatable\SpatieTranslatablePlugin; |
46 | 45 | use pxlrbt\FilamentEnvironmentIndicator\EnvironmentIndicatorPlugin; |
47 | 46 | use pxlrbt\FilamentSpotlight\SpotlightPlugin; |
@@ -77,7 +76,7 @@ public function panel(Panel $panel): Panel |
77 | 76 | ]) |
78 | 77 | ->topNavigation() |
79 | 78 | ->brandLogo( |
80 | | - fn (): View => view('eclipse::filament.components.brand') |
| 79 | + fn () => app(BrandWithTenantSwitcher::class) |
81 | 80 | ) |
82 | 81 | ->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources') |
83 | 82 | ->discoverResources(in: $package_src.'Filament/Resources', for: 'Eclipse\\Core\\Filament\\Resources') |
@@ -170,13 +169,6 @@ public function panel(Panel $panel): Panel |
170 | 169 | ) |
171 | 170 | ->viteTheme('resources/css/filament/admin/theme.css'); |
172 | 171 |
|
173 | | - if ($hasTenantMenu) { |
174 | | - $panel->renderHook( |
175 | | - PanelsRenderHook::GLOBAL_SEARCH_END, |
176 | | - fn () => view('eclipse::filament.components.tenant-menu') |
177 | | - ); |
178 | | - } |
179 | | - |
180 | 172 | // If the Pro version of the Spotlight plugin is installed, use that, otherwise use the free version |
181 | 173 | if (class_exists(\pxlrbt\FilamentSpotlightPro\SpotlightPlugin::class)) { |
182 | 174 | /** @noinspection PhpFullyQualifiedNameUsageInspection */ |
@@ -241,20 +233,5 @@ public function boot(): void |
241 | 233 |
|
242 | 234 | // Load customized translations for Filament Shield |
243 | 235 | $this->loadTranslationsFrom(__DIR__.'/../../resources/lang/vendor/filament-shield', 'filament-shield'); |
244 | | - |
245 | | - // Configure Panel Switch |
246 | | - PanelSwitch::configureUsing(function (PanelSwitch $panelSwitch) { |
247 | | - $panelSwitch |
248 | | - ->simple() |
249 | | - ->icons([ |
250 | | - 'admin' => 'heroicon-s-cog-6-tooth', |
251 | | - 'frontend' => 'heroicon-s-globe-alt', |
252 | | - ]) |
253 | | - ->labels([ |
254 | | - 'admin' => 'Admin Panel', |
255 | | - 'frontend' => 'Frontend', |
256 | | - ]) |
257 | | - ->visible(fn (): bool => auth()->check()); |
258 | | - }); |
259 | 236 | } |
260 | 237 | } |
0 commit comments