@use('App\Models\Company', 'Company') @use('Illuminate\Support\Arr', 'Arr') {{-- onlyTopLevel / excludeId power the parent-company picker: the first disables sub-companies (they can't themselves become parents), the second hides the company being edited (so it can't be selected as its own parent). Both are read as data-* attributes by the js-data-ajax initializer in snipeit.js and forwarded to the /api/v1/companies/selectlist endpoint. --}} @props([ 'label', 'name', 'selected' => null, 'required' => false, 'multiple' => false, 'hideNewButton' => false, 'onlyTopLevel' => false, 'excludeId' => null, ])
$errors->has($name), ]) >
@unless($hideNewButton)
@can('create', Company::class) {{ trans('button.new') }} @endcan
@endunless @if ($snipeSettings->full_multiple_companies_support == '1') @cannot('superadmin')

{{ trans('general.fmcs_company_select_note') }}

@endcannot @can('superadmin')

{{ trans('general.fmcs_company_select_superadmin_note') }}

@endcan @endif