Wohnungsumschalter im Verwaltungsmenue und wohnungsbezogene Listen
Oben im Seitenmenue waehlt man die Wohnung; Listen, neue Eintraege, Belegungsplan und Preise & Angebote folgen ihr. Ein geoeffneter Eintrag einer anderen Wohnung schaltet auf diese um. Galerie und Ersatz-Titelbild der Website zeigen nur Fotos der Wohnung des Bausteins und Fotos ohne Wohnung. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e74033a958
commit
8bcda9a4bc
37 files changed
+520
-35
No files matched your search
@@ -3,6 +3,7 @@
|
||||
namespace App\Providers\Filament;
|
||||
|
||||
use App\Enums\AdminMode;
|
||||
use App\Http\Controllers\SwitchPropertyController;
|
||||
use App\Http\Middleware\ResolveTheme;
|
||||
use App\Models\User;
|
||||
use Filament\Actions\Action;
|
||||
@@ -25,6 +26,7 @@
|
||||
use Illuminate\Foundation\Http\Middleware\PreventRequestForgery;
|
||||
use Illuminate\Routing\Middleware\SubstituteBindings;
|
||||
use Illuminate\Session\Middleware\StartSession;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Illuminate\View\Middleware\ShareErrorsFromSession;
|
||||
|
||||
class AdminPanelProvider extends PanelProvider
|
||||
@@ -68,6 +70,11 @@ public function panel(Panel $panel): Panel
|
||||
->brandName('FeWo Stommer · Verwaltung')
|
||||
// As long as the site is not switched live, every page shows where the e-mails go.
|
||||
->renderHook(PanelsRenderHook::BODY_START, fn (): View => view('filament.test-mode-banner'))
|
||||
// Apartment switcher at the top of the menu; lists and new records follow the chosen apartment.
|
||||
->renderHook(PanelsRenderHook::SIDEBAR_NAV_START, fn (): View => view('filament.property-switcher'))
|
||||
->authenticatedRoutes(function (): void {
|
||||
Route::post('wohnung-wechseln', SwitchPropertyController::class)->name('switch-property');
|
||||
})
|
||||
->navigationGroups(['Vermietung', 'Webseite', 'System'])
|
||||
->colors([
|
||||
'primary' => Color::Sky,
|
||||
|
||||
Reference in new issue
Block a user