clupilot/app
Boban Blaskovic 4aa7d544b7 Step 3/5: Workspace switcher dropdown + logout button
User: no logout button + clicking workspace switcher in sidebar did nothing.

Sidebar component:
- Workspace switcher now wraps in Alpine x-data={ wsOpen: false }.
  Click toggles dropdown, @click.outside + escape-key close it.
- Dropdown lists all workspaces the user can access (owned +
  TeamMember memberships), shows active one with accent checkmark.
  Fallback: if list is empty, shows just the current workspace so
  users never see an empty switcher.
- '+ Neuer Workspace' row at bottom of workspaces list.
- User section: shows auth user's name (header) + email.
- 'Profil' link → route('profile').
- 'Einstellungen' link → route('settings.index').
- 'Abmelden' button: POST form with CSRF to route('logout'),
  red-colored row.
- Workspace switch via ?workspace=<slug> query param — middleware
  ResolveCurrentWorkspace picks it up, persists in session +
  user.current_workspace_id, then page reloads with new scope.
- Sidebar nav title now reads workspace name dynamically.
- Plan-box footer reads real plan + sites/quota + has 'Upgrade →'
  link to settings.

CSS additions: clu-ws-dropdown (white 98% bg + glass shadow, z-index
60 to sit above sticky topbar 20 + sidebar 30), clu-ws-section
(uppercase muted header), clu-ws-item (hover bg + active accent
soft), clu-ws-divider (1px hairline). [x-cloak] global rule prevents
FOUC.

Browser-verified: clicking AC avatar + 'Acme Agency PRO' panel
expands dropdown with 'Acme Agency PRO · 87 sites' (current,
checkmark), Neuer Workspace, ADMIN section with email + Profil +
Einstellungen + red Abmelden. 0 console errors. 36/36 Page tests
green.
2026-06-01 01:26:10 +02:00
..
app Step 1/5: Workspace multi-tenancy foundation 2026-06-01 01:12:00 +02:00
bootstrap Step 1/5: Workspace multi-tenancy foundation 2026-06-01 01:12:00 +02:00
config Initial CluPilot stack setup 2026-05-27 23:00:14 +02:00
database Step 1/5: Workspace multi-tenancy foundation 2026-06-01 01:12:00 +02:00
public Initial CluPilot stack setup 2026-05-27 23:00:14 +02:00
resources Step 3/5: Workspace switcher dropdown + logout button 2026-06-01 01:26:10 +02:00
routes Pages: Cluster Wizard (4-step) + Site Details (6 tabs) — final 12/12 2026-05-31 23:08:15 +02:00
storage Portainer-ready compose stack + app changes 2026-05-31 17:04:03 +02:00
tests Site Details: exact template rebuild + xterm.js logs + fileContents tree 2026-05-31 23:49:48 +02:00
.editorconfig Portainer-ready compose stack + app changes 2026-05-31 17:04:03 +02:00
.env.example Initial CluPilot stack setup 2026-05-27 23:00:14 +02:00
.env.testing Fix tailwind build + test-DB isolation 2026-05-31 22:47:34 +02:00
.gitattributes Initial CluPilot stack setup 2026-05-27 23:00:14 +02:00
.gitignore Initial CluPilot stack setup 2026-05-27 23:00:14 +02:00
README.md Portainer-ready compose stack + app changes 2026-05-31 17:04:03 +02:00
artisan Initial CluPilot stack setup 2026-05-27 23:00:14 +02:00
composer.json Foundation + Login Glass page from template 2026-05-31 22:18:51 +02:00
composer.lock Foundation + Login Glass page from template 2026-05-31 22:18:51 +02:00
package-lock.json Site Details: exact template rebuild + xterm.js logs + fileContents tree 2026-05-31 23:49:48 +02:00
package.json Site Details: exact template rebuild + xterm.js logs + fileContents tree 2026-05-31 23:49:48 +02:00
phpunit.xml Portainer-ready compose stack + app changes 2026-05-31 17:04:03 +02:00
vite.config.js Initial CluPilot stack setup 2026-05-27 23:00:14 +02:00

README.md

Laravel Logo

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. You can also check out Laravel Learn, where you will be guided through building a modern Laravel application.

If you don't feel like reading, Laracasts can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Partners program.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.