{{-- See snipeit_modals.js for what powers this --}} {{-- Scoped-locations FMCS pins the new location to the creator's first company. When enabled we submit company_id as a hidden field and skip the picker. Otherwise the user picks the company via select2. --}} @if (($snipeSettings->scope_locations_fmcs == '1') && (auth()->user()->companies->isNotEmpty())) @else {{-- Explicit id so the modal's company picker doesn't collide with an outer page's company picker (which also renders as #company_id_select). Duplicate ids leave select2 bound to the wrong element and the dropdown never opens. --}} @endif