@use('App\Models\User', 'User') {{-- companyId scopes the ajax lookup to a specific company (via data-company-ids consumed by the js-data-ajax initializer in snipeit.js). excludeId hides a specific user from the list. Used by the users/edit page's manager picker so a user can't select themselves as their own manager. wrapperId and id default to values derived from the name prop, so a manager picker with name="manager_id" gets id="manager_id_select" and wrapperId="manager_id" automatically. --}} @props([ 'label', 'name', 'selected' => null, 'required' => false, 'hideNewButton' => false, 'companyId' => null, 'excludeId' => null, 'wrapperId' => null, 'id' => null, 'style' => null, ]) @php $wrapperId = $wrapperId ?? $name; $id = $id ?? ($name.'_select'); @endphp