{{-- ICTHospital - branch switcher in the top bar, for users not tied to one branch. Copyright (c) DEVtrust Part of ICTHospital Licensed under the GNU General Public License v3.0. --}} @php($branches = \Illuminate\Support\Facades\Schema::hasTable('hospital_branch') ? \App\Models\HospitalBranch::where('active', true)->orderBy('name')->get(['id', 'name']) : collect()) @if ($branches->isNotEmpty() && auth()->check())
@if (\App\Support\Branch::canSwitch())
{{ csrf_field() }}
@else {{ \App\Support\Branch::name(\App\Support\Branch::current()) }} @endif
@endif