diff --git a/database/seeders/MngMenuSeeder.php b/database/seeders/MngMenuSeeder.php index 99b29766..928d4914 100644 --- a/database/seeders/MngMenuSeeder.php +++ b/database/seeders/MngMenuSeeder.php @@ -520,7 +520,39 @@ protected function seedMainMenus(): void ]); // ======================================== - // 바로빌 그룹 + // 바로빌본사 그룹 (본사 관리용) + // ======================================== + $barobillHqGroup = $this->createMenu([ + 'name' => '바로빌본사', + 'url' => '#', + 'icon' => 'office-building', + 'sort_order' => $sortOrder++, + 'options' => [ + 'section' => 'main', + 'meta' => ['group_id' => 'barobill-hq-group'], + ], + ]); + + $barobillHqSubOrder = 0; + $this->createMenu([ + 'parent_id' => $barobillHqGroup->id, + 'name' => '바로빌설정', + 'url' => '/barobill/config', + 'icon' => 'cog', + 'sort_order' => $barobillHqSubOrder++, + 'options' => ['route_name' => 'barobill.config.index', 'section' => 'main'], + ]); + $this->createMenu([ + 'parent_id' => $barobillHqGroup->id, + 'name' => '회원사관리', + 'url' => '/barobill/members', + 'icon' => 'building', + 'sort_order' => $barobillHqSubOrder++, + 'options' => ['route_name' => 'barobill.members.index', 'section' => 'main'], + ]); + + // ======================================== + // 바로빌 그룹 (회원사용) // ======================================== $barobillGroup = $this->createMenu([ 'name' => '바로빌', @@ -542,14 +574,6 @@ protected function seedMainMenus(): void 'sort_order' => $barobillSubOrder++, 'options' => ['route_name' => 'barobill.settings.index', 'section' => 'main'], ]); - $this->createMenu([ - 'parent_id' => $barobillGroup->id, - 'name' => '회원사관리', - 'url' => '/barobill/members', - 'icon' => 'building', - 'sort_order' => $barobillSubOrder++, - 'options' => ['route_name' => 'barobill.members.index', 'section' => 'main'], - ]); $this->createMenu([ 'parent_id' => $barobillGroup->id, 'name' => '전자세금계산서',