I’m using Laravel and InstantSearch JS for my search.
I’ve looked through the InstantSearch documentation and I’m struggling to find the best way to load items conditionally for the hits widget.
For example, in my search certain items could be marked as “New” or “Featured” depending on if that record has those attributes, these are stored on the record as a boolean e.g. New = 1 if that record is new.
Essentially I want to display some HTML if a record is marked as new and not if it isn’t.
Thanks in advance for any help or advice (this forum is always so friendly & helpful ).