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: TransactionRoute.page),
        AutoRoute(page: ReportRoute.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),

    // 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),
  ];
}
