| @@ -13,8 +13,9 @@ | ||
| 13 | 13 | use SyncBasalam\Admin\Pages\CreateTicketPage; |
| 14 | 14 | use SyncBasalam\Admin\Pages\SingleTicketPage; |
| 15 | 15 | use SyncBasalam\Admin\Settings; |
| 16 | 16 | use SyncBasalam\Admin\Components\CommonComponents; |
| 17 | +use SyncBasalam\Admin\FinancialManagement\Menu as FinancialManagementMenu; | |
| 17 | 18 | |
| 18 | 19 | class Pages |
| 19 | 20 | { |
| 20 | 21 | private $renderUi; |
| @@ -78,8 +79,17 @@ | ||
| 78 | 79 | $this->renderUi->renderIcon('dashicons-category') . 'اتصال دستهبندیها', |
| 79 | 80 | 'manage_options', |
| 80 | 81 | 'sync_basalam_category_mapping', |
| 81 | 82 | [new CategoryMappingPage(), 'render'] |
| 83 | + ); | |
| 84 | + | |
| 85 | + add_submenu_page( | |
| 86 | + 'sync_basalam', | |
| 87 | + 'مدیریت مالی', | |
| 88 | + $this->renderUi->renderIcon('dashicons-chart-line') . 'مدیریت مالی', | |
| 89 | + 'manage_options', | |
| 90 | + FinancialManagementMenu::PAGE_SLUG, | |
| 91 | + [FinancialManagementMenu::class, 'renderMainPage'] | |
| 82 | 92 | ); |
| 83 | 93 | |
| 84 | 94 | if (class_exists('Digikala\Admin\Menus')) \Digikala\Admin\Menus::register(); |
| 85 | 95 | |