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',