admin themes

This commit is contained in:
2024-09-03 16:29:44 +03:00
parent c325b156bd
commit 2ae5c4ac73
235 changed files with 33397 additions and 57 deletions

View File

@ -42,7 +42,8 @@ class MenuService
public static function createLabelArr(): array
{
foreach (Menu::all()->toArray() as $menuItem) {
$labelArr[0] = "Корневой пункт меню";
foreach (Menu::where("parent_id", 0)->get()->toArray() as $menuItem) {
$labelArr[$menuItem['id']] = $menuItem['label'];
}
if (!empty($labelArr)) {