// import 'package:sefer_driver/env/env.dart';

import '../main.dart';
import 'box_name.dart';

class AppLink {
  static String serverPHP = box.read('serverPHP');

  static String paymentServer = 'https://walletintaleq.intaleq.xyz/v1/main';

  static String locationServer =
      'https://location.intaleq.xyz/intaleq/ride/location';
  static String locationServerSide =
      'https://location.intaleq.xyz/intaleq/ride/location';
  static String mapSaasRoute = 'https://map-saas.intaleqapp.com/api/maps/route';
  static String mapSaasPlaces =
      'https://map-saas.intaleqapp.com/api/geocoding/places';
  static const String routeApiBaseUrl =
      "https://routesjo.intaleq.xyz/route/v1/driving";
  static final String endPoint = 'https://api.intaleq.xyz/intaleq_v3';
  static final String syria = 'https://syria.intaleq.xyz/intaleq';
  static final String server = endPoint;

  ///=================ride==========================///
  ///https://api.intaleq.xyz/intaleq/ride
  static String ride = '$server/ride';
  static String rideServer = 'https://rides.intaleq.xyz/intaleq/ride';

  ///mapOSM = 'https://routesy.intaleq.xyz'
  static String mapOSM = 'https://routesy.intaleq.xyz';

  static String seferCairoServer = endPoint;
  static String seferGizaServer =
      box.read('Giza') ?? box.read(BoxName.serverChosen);
  static String seferAlexandriaServer =
      box.read('Alexandria') ?? box.read(BoxName.serverChosen);
  // static final String server = Env.serverPHP;

  static String loginJwtDriver = "$server/loginJwtDriver.php";
  static String loginJwtWalletDriver = "$server/loginJwtWalletDriver.php";
  static String loginFirstTimeDriver = "$server/loginFirstTimeDriver.php";

  static String googleMapsLink = 'https://maps.googleapis.com/maps/api/';
  static String llama = 'https://api.llama-api.com/chat/completions';
  static String gemini =
      'https://generativelanguage.googleapis.com/v1beta3/models/text-bison-001:generateText';

  static String test = "$server/test.php";

  //===============contact==========================
  static String savePhones = "$ride/egyptPhones/add.php";
  static String savePhonesSyria = "$ride/egyptPhones/syrianAdd.php";
  static String getPhones = "$ride/egyptPhones/get.php";

  ////===============firebase==========================
  static String getTokens = "$ride/firebase/get.php";

  static String getDriverToken = "$ride/firebase/getDriverToken.php";
  static String addTokens = "$ride/firebase/add.php";
  static String addTokensDriver = "$ride/firebase/addDriver.php";
  static String addTokensDriverWallet =
      "$paymentServer/ride/firebase/addDriver.php";

  //=======================Wallet===================
  static String wallet = '$paymentServer/ride/passengerWallet';
  static String walletDriver = '$paymentServer/ride/driverWallet';
  static String getAllPassengerTransaction =
      "$wallet/getAllPassengerTransaction.php";
  static String payWithMTNConfirm =
      "$paymentServer/ride/mtn/driver/confirm_payment.php";
  static String payWithMTNStart =
      "$paymentServer/ride/mtn/driver/mtn_start.php";
  static String payWithSyriatelConfirm =
      "$paymentServer/ride/syriatel/driver/confirm_payment.php";
  static String payWithSyriatelStart =
      "$paymentServer/ride/syriatel/driver/start_payment.php";
  static String payWithEcashDriver =
      "$paymentServer/ride/ecash/driver/payWithEcash.php";
  static String payWithEcashPassenger =
      "$paymentServer/ride/ecash/passenger/payWithEcash.php";
// wl.tripz-egypt.com/v1/main/ride/ecash/driver
  static String getWalletByPassenger = "$wallet/getWalletByPassenger.php";
  static String getPassengersWallet = "$wallet/get.php";
  static String getPassengerWalletArchive =
      "$wallet/getPassengerWalletArchive.php";
  static String addPassengersWallet = "$wallet/add.php";
  static String deletePassengersWallet = "$wallet/delete.php";
  static String updatePassengersWallet = "$wallet/update.php";

  static String getWalletByDriver = "$walletDriver/getWalletByDriver.php";
  static String driverStatistic =
      "$endPoint/ride/driverWallet/driverStatistic.php";
  static String getDriverDetails =
      "$seferCairoServer/ride/driverWallet/getDriverDetails.php";
  static String getDriverWeekPaymentMove =
      "$walletDriver/getDriverWeekPaymentMove.php";
  static String getDriversWallet = "$walletDriver/get.php";
  static String addDriversWalletPoints = "$walletDriver/add.php";
  static String addpromotionDriver = "$walletDriver/promotionDriver.php";
  static String deleteDriversWallet = "$walletDriver/delete.php";
  static String updateDriversWallet = "$walletDriver/update.php";

  //=======================promo===================ride.mobile-app.store/ride/promo/get.php
  static String promo = '$server/ride/promo';
  static String getPassengersPromo = "$promo/get.php";
  static String getPromoBytody = "$promo/getPromoBytody.php";
  static String addPassengersPromo = "$promo/add.php";
  static String deletePassengersPromo = "$promo/delete.php";
  static String updatePassengersPromo = "$promo/update.php";

  ////=======================cancelRide===================

  static String addCancelRideFromPassenger = "$rideServer/cancelRide/add.php";
  static String addCancelTripFromDriverAfterApplied =
      "$rideServer/cancelRide/addCancelTripFromDriverAfterApplied.php";
  static String cancelRide = "$rideServer/cancelRide/get.php";
//-----------------ridessss------------------
  static String addRides = "$rideServer/rides/add.php";
  static String getRides = "$rideServer/rides/get.php";
  static String getPlacesSyria = "$rideServer/places_syria/get.php";
  static String getMishwari = "$rideServer/mishwari/get.php";
  static String getMishwariDriver = "$rideServer/mishwari/getDriver.php";
  static String getTripCountByCaptain =
      "$rideServer/rides/getTripCountByCaptain.php";
  static String getRideOrderID = "$rideServer/rides/getRideOrderID.php";
  static String getRideStatus = "$rideServer/rides/getRideStatus.php";
  static String getOverLayStatus = "$ride/overLay/get.php";
  static String getArgumentAfterAppliedFromBackground =
      "$ride/overLay/getArgumentAfterAppliedFromBackground.php";
  static String addOverLayStatus = "$ride/overLay/add.php";
  static String getapiKey = "$ride/apiKey/get.php";

  static String getapiKeySefer = "$ride/apiKey/get.php";
  static String getRideStatusBegin = "$rideServer/rides/getRideStatusBegin.php";
  static String getRideStatusFromStartApp =
      "$rideServer/rides/getRideStatusFromStartApp.php";
  static String updateRides = "$rideServer/rides/update.php";
  static String updateRideAndCheckIfApplied =
      "$rideServer/rides/updateRideAndCheckIfApplied.php";
  static String updateStausFromSpeed =
      "$rideServer/rides/updateStausFromSpeed.php";
  static String deleteRides = "$rideServer/rides/delete.php";

//-----------------DriverPayment------------------
  static String addDriverScam = "$ride/driver_scam/add.php";
  static String getDriverScam = "$ride/driver_scam/get.php";

/////////---getKazanPercent===////////////
  static String getKazanPercent = "$ride/kazan/get.php";
  static String addKazanPercent = "$ride/kazan/add.php";

////-----------------DriverPayment------------------
  static String addDrivePayment = "$paymentServer/ride/payment/add.php";
  static String payWithPayMobCardDriver =
      "$paymentServer/ride/payMob/paymob_driver/payWithCard.php";
  static String payWithWallet =
      "$paymentServer/ride/payMob/paymob_driver/payWithWallet.php";
  static String paymetVerifyDriver =
      "$paymentServer/ride/payMob/paymob_driver/paymet_verfy.php";
  static String updatePaymetToPaid =
      "$paymentServer/ride/payment/updatePaymetToPaid.php";
  static String paymobPayoutDriverWallet =
      "$paymentServer/ride/payMob/paymob_driver/paymob_payout.php'";

  static String addSeferWallet = "$paymentServer/ride/seferWallet/add.php";
  static String getSeferWallet = "$paymentServer/ride/seferWallet/get.php";
  static String addDriverPaymentPoints =
      "$paymentServer/ride/driverPayment/add.php";
  static String addPaymentTokenDriver =
      "$paymentServer/ride/driverWallet/addPaymentToken.php"; //driverWallet/addPaymentToken.php
  static String addPaymentTokenPassenger =
      "$paymentServer/ride/passengerWallet/addPaymentTokenPassenger.php";
  static String getDriverPaymentPoints =
      "$paymentServer/ride/driverWallet/get.php";
  static String getDriverPaymentToday = "$paymentServer/ride/payment/get.php";
  static String getCountRide = "$rideServer/payment/getCountRide.php";
  static String getAllPaymentFromRide =
      "$paymentServer/ride/payment/getAllPayment.php";
  static String getAllPaymentVisa =
      "$paymentServer/ride/payment/getAllPaymentVisa.php";

//-----------------Passenger NotificationCaptain------------------
  static String addNotificationPassenger =
      "$ride/notificationPassenger/add.php";
  static String getNotificationPassenger =
      "$ride/notificationPassenger/get.php";
  static String updateNotificationPassenger =
      "$ride/notificationPassenger/update.php";
//-----------------Driver NotificationCaptain------------------
  static String addNotificationCaptain = "$ride/notificationCaptain/add.php";
  static String addWaitingRide = "$ride/notificationCaptain/addWaitingRide.php";
  static String deleteAvailableRide =
      "$ride/notificationCaptain/deleteAvailableRide.php";
  static String updateWaitingRide =
      "$ride/notificationCaptain/updateWaitingTrip.php";
  static String getRideWaiting =
      "$endPoint/ride/notificationCaptain/getRideWaiting.php";
  static String getNotificationCaptain = "$ride/notificationCaptain/get.php";
  static String updateNotificationCaptain =
      "$ride/notificationCaptain/update.php";
  static String deleteNotificationCaptain =
      "$ride/notificationCaptain/delete.php";
  //-----------------Api Key------------------
  static String addApiKey = "$ride/apiKey/add.php";
  static String getApiKey = "$ride/apiKey/get.php";
  static String getCnMap = "$server/auth/cnMap.php";
  static String getPromptDriverDocumentsEgypt =
      "$server/auth/captin/getPromptDriverDocumentsEgypt.php";

  static String updateApiKey = "$ride/apiKey/update.php";
  static String deleteApiKey = "$ride/apiKey/delete.php";
  static String checkPhoneNumberISVerfiedDriver =
      "$auth/checkPhoneNumberISVerfiedDriver.php";
  static String getTesterApp = "$auth/Tester/getTesterApp.php";
  static String updateTesterApp = "$auth/Tester/updateTesterApp.php";

//-----------------healthInsuranceProvider------------------
  static String addHealthInsuranceProvider = "$server/driver_assurance/add.php";
  static String getHealthInsuranceProvider = "$server/driver_assurance/get.php";

//-----------------Feed Back------------------
  static String addFeedBack = "$ride/feedBack/add.php";
  static String getFeedBack = "$ride/feedBack/get.php";
  static String updateFeedBack = "$ride/feedBack/updateFeedBack.php";

  //-----------------Tips------------------
  static String addTips = "$ride/tips/add.php";
  static String getTips = "$ride/tips/get.php";
  static String updateTips = "$ride/tips/update.php";

//-----------------Help Center------------------
  static String addhelpCenter = "$ride/helpCenter/add.php";
  static String gethelpCenter = "$ride/helpCenter/get.php";
  static String getByIdhelpCenter = "$ride/helpCenter/getById.php";
  static String updatehelpCenter = "$ride/helpCenter/update.php";
  static String deletehelpCenter = "$ride/helpCenter/delete.php";

  //-----------------license------------------
  static String addLicense = "$ride/license/add.php";
  static String getLicense = "$ride/license/get.php";
  static String updateLicense = "$ride/license/updateFeedBack.php";
//-----------------RegisrationCar------------------
  static String addRegisrationCar = "$ride/RegisrationCar/add.php";
  static String getRegisrationCar = "$endPoint/ride/RegisrationCar/get.php";
  static String updateRegisrationCar = "$ride/RegisrationCar/update.php";
  static String makeDefaultCar = "$ride/RegisrationCar/makeDefaultCar.php";

//-----------------DriverOrder------------------

  static String addDriverOrder = "$ride/driver_order/add.php";
  static String getDriverOrder = "$ride/driver_order/get.php";
  static String getOrderCancelStatus =
      "$ride/driver_order/getOrderCancelStatus.php";
  static String updateDriverOrder = "$ride/driver_order/update.php";
  static String deleteDriverOrder = "$ride/driver_order/delete.php";

  // =====================================
  static String addRateToPassenger = "$ride/rate/add.php";
  static String addRateToDriver = "$ride/rate/addRateToDriver.php";
  static String addRateApp = "$ride/rate/add_rate_app.php";
  static String sendEmailRateingApp = "$ride/rate/sendEmailRateingApp.php";
  static String getDriverRate = "$ride/rate/getDriverRate.php";
  static String getPassengerRate = "$ride/rate/getPassengerRate.php";

  ////////////////emails ============//
  static String sendEmailToPassengerForTripDetails =
      "$ride/rides/emailToPassengerTripDetail.php";
  static String sendEmailToDrivertransaction =
      "$server/Admin/sendEmailToDrivertransaction.php";
// ===========================================
  static String pathImage = "$server/upload/types/";
  static String uploadImage = "$server/uploadImage.php";
  static String uploadImage1 = "$server/uploadImage1.php";
  static String uploadImagePortrate = "$server/uploadImagePortrate.php";
  static String uploadSyrianDocs = "$syria/auth/syria/uploadSyrianDocs.php";
  static String uploadImageType = "$server/uploadImageType.php";
//=============egypt documents ==============
  static String uploadEgyptidFront =
      "$server/EgyptDocuments/uploadEgyptidFront.php";
  static String uploadEgypt = "$server/uploadEgypt.php";
  static String uploadEgypt1 = "$server/uploadEgypt1.php";

  //==================certifcate==========
  // static String location = '$endPoint/ride/location';

  static String getCarsLocationByPassenger = "$locationServer/get.php";
  static String addpassengerLocation =
      "$locationServer/addpassengerLocation.php";
  static String getLocationAreaLinks =
      "$locationServer/get_location_area_links.php";
  static String getLatestLocationPassenger =
      "$locationServer/getLatestLocationPassenger.php";
  static String getFemalDriverLocationByPassenger =
      "$locationServer/getFemalDriver.php";
  static String getDriverCarsLocationToPassengerAfterApplied =
      "$locationServer/getDriverCarsLocationToPassengerAfterApplied.php";
  static String addCarsLocationByPassenger = "$locationServer/add.php";
  static String saveBehavior = "$locationServer/save_behavior.php";
  static String addCarsLocationGizaEndpoint = "$locationServer/add.php";
  static String addCarsLocationAlexandriaEndpoint = "$locationServer/add.php";
  static String addCarsLocationCairoEndpoint = "$locationServer/add.php";
  static String deleteCarsLocationByPassenger = "$locationServer/delete.php";
  static String updateCarsLocationByPassenger = "$locationServer/update.php";
  static String getTotalDriverDuration =
      "$locationServer/getTotalDriverDuration.php";
  static String getRidesDriverByDay = "$locationServer/getRidesDriverByDay.php";
  static String getTotalDriverDurationToday =
      "$locationServer/getTotalDriverDurationToday.php";

  //==================get_driver_behavior.php=============
  static String get_driver_behavior =
      '$ride/driver_behavior/get_driver_behavior.php';

  //==================cars new drivers=============
  static String addNewCarsDrivers = '$ride/carDrivers/add.php';
  static String getNewCarsDrivers = '$ride/carDrivers/get.php';
  static String deleteNewCarsDrivers = '$ride/carDrivers/delete.php';

  //==================Blog=============
  static String profile = '$ride/profile';
  static String getprofile = "$profile/get.php";
  static String getCaptainProfile = "$profile/getCaptainProfile.php";
  static String addprofile = "$profile/add.php";
  static String deleteprofile = "$profile/delete.php";
  static String updateprofile = "$profile/update.php";
  static String updateDriverEmail = "$profile/updateDriverEmail.php";

  //===================Auth============

  static String addInviteDriver = "$ride/invitor/add.php";
  static String addInvitationPassenger =
      "$ride/invitor/addInvitationPassenger.php";
  static String getInviteDriver = "$ride/invitor/get.php";
  static String getDriverInvitationToPassengers =
      "$ride/invitor/getDriverInvitationToPassengers.php";
  static String updateInviteDriver = "$ride/invitor/update.php";
  static String updatePassengerGift = "$ride/invitor/updatePassengerGift.php";
  static String updateInvitationCodeFromRegister =
      "$ride/invitor/updateInvitationCodeFromRegister.php";
  static String register_driver_and_car =
      "$auth/syria/driver/register_driver_and_car.php";
  static String updateDriverInvitationDirectly =
      "$ride/invitor/updateDriverInvitationDirectly.php";
  static String updatePassengersInvitation =
      "$ride/invitor/updatePassengersInvitation.php";

  //===================Auth============

  static String auth = '$server/auth';
  static String login = "$auth/login.php";
  static String signUp = "$auth/signup.php";
  static String updateDriverClaim = "$auth/captin/updateDriverClaim.php";
  static String updateShamCashDriver = "$auth/captin/updateShamCashDriver.php";
  static String sendVerifyEmail = "$auth/sendVerifyEmail.php";
  static String passengerRemovedAccountEmail =
      "$auth/passengerRemovedAccountEmail.php";
  static String verifyEmail = "$auth/verifyEmail.php";
//===================Auth Captin============
  static String authCaptin = '$server/auth/captin';
  static String loginCaptin = "$authCaptin/login.php";
  static String loginFromGoogleCaptin = "$authCaptin/loginFromGoogle.php";
  static String loginUsingCredentialsWithoutGoogle =
      "$authCaptin/loginUsingCredentialsWithoutGoogle.php";
  static String packageInfo = "$server/auth/packageInfo.php";
  static String signUpCaptin = "$authCaptin/register.php";
  static String addCriminalDocuments = "$authCaptin/addCriminalDocuments.php";
  static String sendVerifyEmailCaptin = "$authCaptin/sendVerifyEmail.php";
  static String sendVerifyOtpMessage =
      "$server/auth/captin/sendOtpMessageDriver.php";
  static String verifyOtpMessage = "$server/auth/verifyOtpMessage.php";
  static String verifyOtpDriver = "$server/auth/captin/verifyOtpDriver.php";
  static String verifyEmailCaptin = "$authCaptin/verifyEmail.php";
  static String removeUser = "$authCaptin/removeAccount.php";
  static String deletecaptainAccounr = "$authCaptin/deletecaptainAccounr.php";
  static String updateAccountBank = "$authCaptin/updateAccountBank.php";
  static String getAccount = "$authCaptin/getAccount.php";
  static String uploadImageToAi = "$auth/document_syria/ai_document.php";
  static String isPhoneVerified = "$auth/syria/driver/isPhoneVerified.php";

  //===================Admin Captin============

  static String getPassengerDetailsByPassengerID =
      "$server/Admin/getPassengerDetailsByPassengerID.php";
  static String getPassengerDetails = "$server/Admin/getPassengerDetails.php";
  static String getPassengerbyEmail = "$server/Admin/getPassengerbyEmail.php";
  static String addAdminUser = "$server/Admin/adminUser/add.php";
  static String addError = "$server/Admin/errorApp.php";
  static String getAdminUser = "$server/Admin/adminUser/get.php";
  static String getCaptainDetailsByEmailOrIDOrPhone =
      "$server/Admin/AdminCaptain/getCaptainDetailsByEmailOrIDOrPhone.php";
  static String getCaptainDetails = "$server/Admin/AdminCaptain/get.php";
  static String getRidesPerMonth =
      "$server/Admin/AdminRide/getRidesPerMonth.php";
  static String getRidesDetails = "$server/Admin/AdminRide/get.php";

//////////Sms egypt///////////
  static String sendSms = "https://sms.kazumi.me/api/sms/send-sms";
  static String senddlr = "https://sms.kazumi.me/api/sms/send-dlr";
  static String sendvalidity = "https://sms.kazumi.me/api/sms/send-validity";
  static String sendmany = "https://sms.kazumi.me/api/sms/send-many";
  static String checkCredit = "https://sms.kazumi.me/api/sms/check-credit";
  static String checkStatus = "https://sms.kazumi.me/api/sms/check-status";
  static String getSender = "$server/auth/sms/getSender.php";
  static String updatePhoneInvalidSMS =
      "$server/auth/sms/updatePhoneInvalidSMS.php";

  //////////////service///////////

  static String serviceApp = "$server/serviceapp";
  static String getComplaintAllData = "$serviceApp/getComplaintAllData.php";
  static String getComplaintAllDataForDriver =
      "$serviceApp/getComplaintAllDataForDriver.php";
}
