@props([ 'name', 'items', 'selected' => null, 'storeUrl', 'entity' => 'item', {{-- shown in the texts: "supplier", "client" ... --}} 'required' => false, 'inputClass' => 'mt-1 block w-full rounded-md border-gray-300 text-sm', ]) {{-- Smart picklist + popup to register a new record. $items = [['id','name','contact_person','phone','email'], ...] --}}

Pick a {{ $entity }} from the list, or add it as a new one.

{{-- Popup: register a new record (no nested
; Enter saves the popup, not the page's form) --}}

New {{ $entity }}