add datatbles for invoices, add pdf icon, refactor icons components, add autocomplete on search, adapt searching to meilisearch
This commit is contained in:
@@ -6,9 +6,11 @@ use App\Models\Shop\Article;
|
||||
|
||||
class Searches
|
||||
{
|
||||
public static function search($query)
|
||||
public static function search($options)
|
||||
{
|
||||
return Article::withAvailableOffers()->search($query)->get();
|
||||
return collect(Articles::getArticlesToSell([
|
||||
'ids' => Article::search($options['search_name'])->get()->pluck('id'),
|
||||
]))->sortBy('searchOrder')->toArray();
|
||||
}
|
||||
public static function getResults($options)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user