new: add visibility badge for articles in offer form select

This commit is contained in:
Valentin Lab
2026-03-16 16:44:48 +01:00
parent d8f95c667c
commit 493743307a
3 changed files with 26 additions and 0 deletions

View File

@@ -67,6 +67,11 @@ class Articles
return $data;
}
public static function getVisibilityMap()
{
return Article::pluck('visible', 'id')->toArray();
}
public static function getAll()
{
return Article::orderBy('name', 'asc')->get();