import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart';

import '../../../../common/extension/extension.dart';
import '../../../../common/theme/theme.dart';
import '../../../router/app_router.gr.dart';
import 'divider.dart';
import 'profile_tile.dart';

class ProfileBusinessSetting extends StatelessWidget {
  const ProfileBusinessSetting({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.symmetric(horizontal: AppValue.margin),
      decoration: BoxDecoration(
        color: AppColor.surface,
        borderRadius: BorderRadius.circular(12),
        boxShadow: [
          BoxShadow(
            color: Colors.black.withOpacity(0.05),
            blurRadius: 10,
            offset: const Offset(0, 2),
          ),
        ],
      ),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Padding(
            padding: EdgeInsets.all(16),
            child: Text(
              context.lang.business_settings,
              style: AppStyle.xl.copyWith(
                fontSize: 18,
                fontWeight: FontWeight.bold,
                color: AppColor.textPrimary,
              ),
            ),
          ),

          ProfileTile(
            icon: Icons.business_outlined,
            title: context.lang.outlet_information,
            subtitle: context.lang.outlet_informatio_desc,
            onTap: () => context.router.push(OutletInformationRoute()),
          ),
          ProfileDivider(),

          ProfileTile(
            icon: Icons.download_outlined,
            title: context.lang.download_report,
            subtitle: context.lang.download_report_desc,
            onTap: () => context.router.push(DownloadReportRoute()),
          ),
        ],
      ),
    );
  }
}
