From 2e969f8db28bc49e36f2f4626dc8b35e5c44ccc7 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Wed, 8 Jul 2026 06:52:22 +0000 Subject: [PATCH] Add branch switcher to mobile profile bottom sheet. Matches Woo store switcher pattern; desktop header switcher stays on large screens only. Co-authored-by: Cursor --- .../partials/branch-switcher-menu.blade.php | 29 +++++++++++++++++++ .../partials/mobile-bottom-nav.blade.php | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 resources/views/partials/branch-switcher-menu.blade.php diff --git a/resources/views/partials/branch-switcher-menu.blade.php b/resources/views/partials/branch-switcher-menu.blade.php new file mode 100644 index 0000000..1498eb9 --- /dev/null +++ b/resources/views/partials/branch-switcher-menu.blade.php @@ -0,0 +1,29 @@ +@if (isset($actingLocation) || (($accessibleLocations ?? collect())->isNotEmpty())) +
+

Switch branch

+ @foreach ($accessibleLocations ?? [] as $branch) +
+ @csrf + + +
+ @endforeach + @if (! empty($canManageBranches)) + + Manage branches + + @endif +
+@endif diff --git a/resources/views/partials/mobile-bottom-nav.blade.php b/resources/views/partials/mobile-bottom-nav.blade.php index a308a67..e5311de 100644 --- a/resources/views/partials/mobile-bottom-nav.blade.php +++ b/resources/views/partials/mobile-bottom-nav.blade.php @@ -122,6 +122,8 @@ @endif + @include('partials.branch-switcher-menu', ['onNavigate' => 'profileOpen = false']) + @include('partials.user-profile-menu', [ 'items' => $profileMenuItems, 'variant' => 'sheet',