import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:hmg_patient_app_new/core/app_assets.dart';
import 'package:hmg_patient_app_new/core/app_state.dart';
import 'package:hmg_patient_app_new/core/dependencies.dart';
import 'package:hmg_patient_app_new/generated/locale_keys.g.dart';
import 'package:hmg_patient_app_new/presentation/home/data/service_card_data.dart';
import 'package:hmg_patient_app_new/theme/colors.dart';

class LandingPageData {
  static List<ServiceCardData> get getNotLoggedInServiceCardsList => [
    ServiceCardData(
      serviceName: "emergency",
      icon: AppAssets.emergency_services_icon,
      title: getIt.get<AppState>().isArabic()?LocaleKeys.services3 :LocaleKeys.emergency2,
      subtitle: getIt.get<AppState>().isArabic()?LocaleKeys.emergency2:LocaleKeys.services3,
      backgroundColor: AppColors.primaryRedColor,
      iconColor: Colors.white,
      textColor: Colors.white,
      isBold: true,
    ),
    ServiceCardData(
      serviceName: "search_doctor",
      icon: AppAssets.search_doctor_icon,
      title: LocaleKeys.finda,
      subtitle: LocaleKeys.doctor,
      backgroundColor: AppColors.whiteColor,
      iconColor: AppColors.blackColor,
      textColor: AppColors.blackColor,
      isBold: false,
    ),
    ServiceCardData(
      serviceName: "health_calculators_and_converts",
      icon: AppAssets.health_calculators_icon,
      title: getIt.get<AppState>().isArabic()? LocaleKeys.calculators:LocaleKeys.health ,
      subtitle: getIt.get<AppState>().isArabic()? LocaleKeys.health:LocaleKeys.calculators,
      backgroundColor: AppColors.whiteColor,
      iconColor: AppColors.blackColor,
      textColor: AppColors.blackColor,
      isBold: false,
    ),
    ServiceCardData(
      serviceName: "health_converters",
      icon: AppAssets.health_converters_icon,
      title: getIt.get<AppState>().isArabic()? LocaleKeys.converters:LocaleKeys.health,
      subtitle: getIt.get<AppState>().isArabic()? LocaleKeys.health:LocaleKeys.converters,
      backgroundColor: AppColors.whiteColor,
      iconColor: AppColors.blackColor,
      textColor: AppColors.blackColor,
      isBold: false,
    ),
    // ServiceCardData(
    //   serviceName: "parking_guide",
    //   icon: AppAssets.car_parking_icon,
    //   title: getIt.get<AppState>().isArabic()? LocaleKeys.guide:LocaleKeys.parking2,
    //   subtitle: getIt.get<AppState>().isArabic()? LocaleKeys.parking2:LocaleKeys.guide,
    //   backgroundColor: AppColors.whiteColor,
    //   iconColor: AppColors.blackColor,
    //   textColor: AppColors.blackColor,
    //   isBold: false,
    // ),
    ServiceCardData(
      serviceName: "indoor_navigation",
      icon: AppAssets.indoor_nav_icon,
      title: LocaleKeys.indoor,
      subtitle: LocaleKeys.thehospital,
      backgroundColor: AppColors.whiteColor,
      iconColor: AppColors.blackColor,
      textColor: AppColors.blackColor,
      isBold: false,
    ),
  ];

  List<ServiceCardData> get getLoggedInServiceCardsList => [
    ServiceCardData(
      serviceName: "emergency",
      icon: AppAssets.emergency_services_icon,
      title: getIt.get<AppState>().isArabic()?LocaleKeys.services3 :LocaleKeys.emergency2,
      subtitle: getIt.get<AppState>().isArabic()?LocaleKeys.emergency2:LocaleKeys.services3,
      backgroundColor: AppColors.primaryRedColor,
      iconColor: Colors.white,
      textColor: Colors.white,
      isBold: true,
    ),
    ServiceCardData(
      serviceName: "lab_results",
      icon: AppAssets.home_lab_result_icon,
      title: getIt.get<AppState>().isArabic()?LocaleKeys.labSubtitle:LocaleKeys.lab,
      subtitle: getIt.get<AppState>().isArabic()?LocaleKeys.lab:LocaleKeys.labSubtitle ,
      backgroundColor: AppColors.whiteColor,
      iconColor: AppColors.blackColor,
      textColor: AppColors.blackColor,
      isBold: false,
    ),
    ServiceCardData(
      serviceName: "radiology_results",
      icon: AppAssets.my_radiology_icon,
      title: getIt.get<AppState>().isArabic()?LocaleKeys.labSubtitle:LocaleKeys.radiology,
      subtitle: getIt.get<AppState>().isArabic()?LocaleKeys.radiology:LocaleKeys.labSubtitle ,
      backgroundColor: AppColors.whiteColor,
      iconColor: AppColors.blackColor,
      textColor: AppColors.blackColor,
      isBold: false,
    ),
    ServiceCardData(
      serviceName: "prescriptions",
      icon: AppAssets.my_prescription_icon,
      title: getIt.get<AppState>().isArabic()?LocaleKeys.medicinesSubtitle:LocaleKeys.medicalKey,
      subtitle: getIt.get<AppState>().isArabic()?LocaleKeys.medicalKey:LocaleKeys.medicinesSubtitle,
      backgroundColor: AppColors.whiteColor,
      iconColor: AppColors.blackColor,
      textColor: AppColors.blackColor,
      isBold: false,
    ),
    ServiceCardData(
      serviceName: "insurance_update",
      icon: AppAssets.insurance_update_icon,
      title: getIt.get<AppState>().isArabic()?LocaleKeys.insurance :LocaleKeys.insurance,
      subtitle: getIt.get<AppState>().isArabic()?LocaleKeys.medical: LocaleKeys.details2,
      backgroundColor: AppColors.whiteColor,
      iconColor: AppColors.blackColor,
      textColor: AppColors.blackColor,
      isBold: false,
    ),
    ServiceCardData(
      serviceName: "my_doctors",
      icon: AppAssets.my_doctors_icon,
      title: getIt.get<AppState>().isArabic() ? LocaleKeys.myDoctorSubtitle2.tr() : "My",
      subtitle: getIt.get<AppState>().isArabic() ? LocaleKeys.myDoctor.tr() : "Doctors",
      backgroundColor: AppColors.whiteColor,
      iconColor: AppColors.blackColor,
      textColor: AppColors.blackColor,
      isBold: false,
    ),
    ServiceCardData(
      serviceName: "sick_leaves",
      icon: AppAssets.my_sick_leave_icon,
      title: getIt.get<AppState>().isArabic()?LocaleKeys.sickSubtitle:LocaleKeys.sick2,
      subtitle: getIt.get<AppState>().isArabic()?LocaleKeys.sick2:LocaleKeys.sickSubtitle,
      backgroundColor: AppColors.whiteColor,
      iconColor: AppColors.blackColor,
      textColor: AppColors.blackColor,
      isBold: false,
    ),
    ServiceCardData(
      serviceName: "my_invoice",
      icon: AppAssets.invoiceListIcon,
      title: getIt.get<AppState>().isArabic()?LocaleKeys.myDoctorSubtitle2:LocaleKeys.invoiceList2,
      subtitle: getIt.get<AppState>().isArabic()?LocaleKeys.invoiceList2:LocaleKeys.myDoctorSubtitle2,
      backgroundColor: AppColors.whiteColor,
      iconColor: AppColors.blackColor,
      textColor: AppColors.blackColor,
      isBold: false,
    ),
  ];

  static List<ServiceCardData> get getServiceCardsList => [
    ServiceCardData(
      serviceName: "livecare",
      icon: AppAssets.small_livecare_icon,
      title: LocaleKeys.liveCare,
      subtitle: LocaleKeys.liveCareServiceDesc,
      largeCardIcon: AppAssets.liveCareService,
      backgroundColor: AppColors.successColor,
      iconColor: AppColors.whiteColor,
      isBold: false,
      isPNG: false
    ),
    // ServiceCardData(
    //   icon: AppAssets.homeBottom,
    //   title: "Dermatology",
    //   subtitle: "Explore our app, View our services and offers",
    //   largeCardIcon: AppAssets.homeBottom,
    //   backgroundColor: AppColors.primaryRedColor,
    //   isBold: false,
    // ),
    ServiceCardData(
      serviceName: "home_health_care",
      icon: AppAssets.homeBottom,
      title: LocaleKeys.homeHealthCare,
          subtitle: LocaleKeys.homeHealthCareText,
          largeCardIcon: AppAssets.homeHealthCareService,
      backgroundColor: AppColors.primaryRedColor,
      iconColor: AppColors.whiteColor,
      isBold: false,
        isPNG: false
    ),
    ServiceCardData(
      serviceName: "pharmacy",
      icon: AppAssets.defaultMEP, //359846
      title: LocaleKeys.hmgPharmacy,
          subtitle: LocaleKeys.hmgPharmacyText,
          largeCardIcon: AppAssets.pharmacyService,
      backgroundColor: AppColors.pharmacyBGColor,
      iconColor: null,
      isBold: true,
        isPNG: true
    ),
  ];
}
