{{-- "Working at" picker — only for people who may work in more than one section of this screen's type. --}} @php $workType = request()->routeIs('bar.*') ? 'bar' : (request()->routeIs('kitchen.*') ? 'kitchen' : null); $workOptions = $workType && auth()->check() ? auth()->user()->selectableSections($workType) : collect(); $workCurrent = $workOptions->isNotEmpty() ? auth()->user()->workingSection($workType) : null; @endphp @if ($workOptions->count() > 1)
@endif