import 'package:auto_route/auto_route.dart';
import 'app_router.gr.dart';

@AutoRouterConfig()
class AppRouter extends RootStackRouter {
  @override
  List<AutoRoute> get routes => [
    // Splash
    AutoRoute(page: SplashRoute.page, initial: true),

    // Auth
    AutoRoute(page: LoginRoute.page),

    // Main
    AutoRoute(
      page: MainRoute.page,
      children: [
        AutoRoute(page: HomeRoute.page),
        AutoRoute(page: InventoryRoute.page),
        AutoRoute(page: ExclusiveSummaryRoute.page),
        AutoRoute(page: ProfileRoute.page),
      ],
    ),

    // Language
    AutoRoute(page: LanguageRoute.page),

    // Form
    AutoRoute(page: DailyTasksFormRoute.page),

    // Schedule
    AutoRoute(page: ScheduleRoute.page),

    // Product
    AutoRoute(page: ProductRoute.page),
    AutoRoute(page: ProductAnalyticRoute.page),

    // Customer
    AutoRoute(page: CustomerRoute.page),

    // Inventory
    AutoRoute(page: InventoryRoute.page),

    // Sales
    AutoRoute(page: SalesRoute.page),

    // Purchase page
    AutoRoute(page: PurchaseRoute.page),

    // Finance page
    AutoRoute(page: FinanceRoute.page),

    // Profit Sharing
    AutoRoute(page: ProfitSharingRoute.page),
    AutoRoute(page: ProfitSharingDetailRoute.page),

    // Exclusive Summary
    AutoRoute(page: ExclusiveSummaryRoute.page),

    // Order
    AutoRoute(page: OrderDetailRoute.page),

    // Outlet
    AutoRoute(page: OutletInformationRoute.page),

    // Download Report
    AutoRoute(page: DownloadReportRoute.page),

    // Profile
    AutoRoute(page: ProfileEditRoute.page),
    AutoRoute(page: ProfileChangePasswordRoute.page),

    // About App
    AutoRoute(page: AboutAppRoute.page),

    // Error
    AutoRoute(page: ErrorRoute.page),

    // Coming Soong
    AutoRoute(page: ComingSoonRoute.page),
  ];
}
