{{-- B2B tenancy step G — session org switcher at top of the sidebar. --}} @php $user = auth()->user(); $orgs = $user ? \App\Support\CurrentOrg::switchable($user) : collect(); $isSysAdmin = $user && in_array((int) $user->role_id, [1, 9, 10, 11], true); $current = \App\Support\CurrentOrg::id(); $optionCount = $orgs->count() + ($isSysAdmin ? 1 : 0); @endphp @if ($optionCount > 1)
@endif