import 'package:Intaleq/constant/box_name.dart';
import 'package:Intaleq/env/env.dart';
import 'package:Intaleq/main.dart';

class AppLink {
  // static final String seferPaymentServer0 = Env.seferPaymentServer;
  // static final String seferPaymentServer = '${Env.seferPaymentServer}/ride';
  // static final String seferAlexandriaServer = Env.seferAlexandriaServer;
  // static final String seferCairoServer = Env.seferCairoServer;
  static String serverPHP = box.read('serverPHP');
  // static String seferCairoServer =
  //     box.read(BoxName.locationName)[0]['server_link'];
  // static String seferGizaServer = box.read(BoxName.serverChosen);
  // static String seferAlexandriaServer = box.read(BoxName.serverChosen);
  // static String seferPaymentServer = box.read('seferPaymentServer');

  static String seferPaymentServer =
      //  box.read(BoxName.paymentLink);
      'https://walletintaleq.intaleq.xyz/v1/main';
  static String seferPaymentServer0 = box.read('seferPaymentServer');
  // static const String seferGizaServer = 'https://gizasefer.online/sefer';
  // static final String seferGizaServer = Env.seferGizaServer;
  // static final String endPoint = box.read(BoxName.serverChosen);
  // static final String server = endPoint;
  // static final String server = Env.serverPHP;

  static final String endPoint = 'https://intaleq.xyz/intaleq';
  // box.read(BoxName.serverChosen) ?? box.read(BoxName.basicLink);
  // 'https://server.sefer.click/sefer.click/sefer';
  static final String server = endPoint;
  static String IntaleqCairoServer = endPoint;
  static String IntaleqGizaServer = box.read('Giza');
  static String IntaleqAlexandriaServer = box.read('Alexandria');

  static String googleMapsLink = 'https://maps.googleapis.com/maps/api/';
  static String searcMaps =
      'https://autosuggest.search.hereapi.com/v1/autosuggest';
  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";
  //===============firebase==========================
  static String getTokens = "$server/ride/firebase/get.php";
  static String getTokenParent = "$server/ride/firebase/getTokenParent.php";
  static String addTokens = "$server/ride/firebase/add.php";
  static String addFingerPrint = "$seferPaymentServer/ride/firebase/add.php";
  static String addTokensDriver = "$server/ride/firebase/addDriver.php";
  static String packageInfo = "$server/auth/packageInfo.php";

  //=======================Wallet===================
  static String wallet = '$seferPaymentServer/ride/passengerWallet';
  static String walletDriver = '$seferPaymentServer/ride/driverWallet';
  static String getAllPassengerTransaction =
      "$wallet/getAllPassengerTransaction.php";
  static String getWalletByPassenger = "$wallet/getWalletByPassenger.php";
  static String getPassengersWallet = "$wallet/get.php";
  static String payWithPayMobWalletPasenger =
      '$seferPaymentServer/ride/payMob/wallet/payWithPayMob.php';
  static String payWithPayMobCardPassenger =
      '$seferPaymentServer/ride/payMob/payWithPayMob.php';
  static String payWithEcash = "$seferPaymentServer/ecash/payWithEcash.php";

  static String paymetVerifyPassenger =
      "$seferPaymentServer/ride/payMob/paymet_verfy.php";
  static String getPassengerWalletArchive =
      "$wallet/getPassengerWalletArchive.php";

  static String addDrivePayment = "$seferPaymentServer/ride/payment/add.php";
  static String addSeferWallet = "$seferPaymentServer/ride/seferWallet/add.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 getDriversWallet = "$walletDriver/get.php";
  static String addDriversWalletPoints = "$walletDriver/add.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 getPromoFirst = "$promo/getPromoFirst.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";

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

  ////=======================cancelRide===================
  static String ride = '$server/ride';
  static String addCancelRideFromPassenger = "$server/ride/cancelRide/add.php";
  static String cancelRide = "$server/ride/cancelRide/get.php";
//-----------------ridessss------------------
  static String addRides = "$ride/rides/add.php";
  static String getRides = "$endPoint/ride/rides/get.php";
  static String getRideOrderID = "$endPoint/ride/rides/getRideOrderID.php";
  static String getRideStatus = "$endPoint/ride/rides/getRideStatus.php";
  static String getRideStatusBegin =
      "$endPoint/ride/rides/getRideStatusBegin.php";
  static String getRideStatusFromStartApp =
      "$ride/rides/getRideStatusFromStartApp.php";
  static String updateRides = "$server/ride/rides/update.php";
  static String updateStausFromSpeed =
      "$server/ride/rides/updateStausFromSpeed.php";
  static String deleteRides = "$server/ride/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 addDriverpayment = "$seferPaymentServer/ride/payment/add.php";
  static String addDriverPaymentPoints =
      "$seferPaymentServer/ride/driverPayment/add.php";
  static String addPaymentTokenPassenger =
      "$seferPaymentServer/ride/passengerWallet/addPaymentTokenPassenger.php";
  static String addPaymentTokenDriver =
      "$seferPaymentServer/ride/driverWallet/addPaymentToken.php";
  static String getDriverPaymentPoints =
      "$seferPaymentServer/ride/driverWallet/get.php";
  static String payWithEcashPassenger =
      "$seferPaymentServer/ride/ecash/passenger/payWithEcash.php";
  static String payWithMTNConfirm =
      "$seferPaymentServer/ride/mtn/passenger/mtn_confirm.php";
  static String payWithMTNStart =
      "$seferPaymentServer/ride/mtn/passenger/mtn_start.php";
  static String payWithSyriatelConfirm =
      "$seferPaymentServer/ride/syriatel/passenger/confirm_payment.php";
  static String payWithSyriatelStart =
      "$seferPaymentServer/ride/syriatel/passenger/start_payment.php";
  static String getDriverpaymentToday =
      "$seferPaymentServer/ride/payment/get.php";
  static String getCountRide =
      "$seferPaymentServer/ride/payment/getCountRide.php";
  static String getAllPaymentFromRide =
      "$seferPaymentServer/ride/payment/getAllPayment.php";
  static String getAllPaymentVisa =
      "$seferPaymentServer/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 =
      "$server/ride/notificationCaptain/addWaitingRide.php";
  static String updateWaitingTrip =
      "$server/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";
  //-----------------invitor------------------

  static String addInviteDriver = "$server/ride/invitor/add.php";
  static String addInvitationPassenger =
      "$server/ride/invitor/addInvitationPassenger.php";
  static String getInviteDriver = "$server/ride/invitor/get.php";
  static String getDriverInvitationToPassengers =
      "$server/ride/invitor/getDriverInvitationToPassengers.php";
  static String updateInviteDriver = "$server/ride/invitor/update.php";
  static String updatePassengerGift =
      "$server/ride/invitor/updatePassengerGift.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 updateApiKey = "$ride/apiKey/update.php";
  static String deleteApiKey = "$ride/apiKey/delete.php";
  static String getPlacesSyria = "$ride/places_syria/get.php";

//-----------------Feed Back------------------
  static String addFeedBack = "$ride/feedBack/add.php";
  static String uploadAudio = "$ride/feedBack/upload_audio.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 =
      "${box.read(BoxName.serverChosen)}/ride/RegisrationCar/get.php";
  static String selectDriverAndCarForMishwariTrip =
      "$ride/RegisrationCar/selectDriverAndCarForMishwariTrip.php";
  static String updateRegisrationCar = "$ride/RegisrationCar/update.php";

//-----------------mishwari------------------

  static String addMishwari = "$ride/mishwari/add.php";
  static String cancelMishwari = "$ride/mishwari/cancel.php";
  static String getMishwari = "$ride/mishwari/get.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 savePlacesServer = "$ride/places/add.php";
  static String getapiKey = "$ride/apiKey/get.php";
  static String addRateToDriver = "$ride/rate/addRateToDriver.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 pathImage = "$server/upload/types/";
  static String uploadImage = "$server/uploadImage.php";
  static String uploadImage1 = "$server/uploadImage1.php";
  static String uploadImagePortrate = "$server/uploadImagePortrate.php";
  static String uploadImageType = "$server/uploadImageType.php";
//=============egypt documents ==============
  static String uploadEgyptidFront =
      "$server/EgyptDocuments/uploadEgyptidFront.php";
  static String uploadEgypt = "$server/uploadEgypt.php";

  //==================certifcate==========
  static String location = '${box.read(BoxName.serverChosen)}/ride/location';
  static String getCarsLocationByPassenger = "$location/get.php";

  static String getLocationAreaLinks =
      '$ride/location/get_location_area_links.php';
  static String addpassengerLocation = "$location/addpassengerLocation.php";
  static String getCarsLocationByPassengerSpeed = "$location/getSpeed.php";
  static String getCarsLocationByPassengerComfort = "$location/getComfort.php";
  static String getCarsLocationByPassengerBalash = "$location/getBalash.php";
  static String getCarsLocationByPassengerElectric =
      "$location/getElectric.php";
  static String getCarsLocationByPassengerPinkBike =
      "$location/getPinkBike.php";
  static String getCarsLocationByPassengerDelivery =
      "$location/getDelivery.php";
  static String getLocationParents = "$location/getLocationParents.php";
  static String getFemalDriverLocationByPassenger =
      "$location/getFemalDriver.php";
  static String getDriverCarsLocationToPassengerAfterApplied =
      "$location/getDriverCarsLocationToPassengerAfterApplied.php";
  static String addCarsLocationByPassenger = "$location/add.php";
  static String deleteCarsLocationByPassenger = "$location/delete.php";
  static String updateCarsLocationByPassenger = "$location/update.php";
  static String getTotalDriverDuration = "$location/getTotalDriverDuration.php";
  static String getTotalDriverDurationToday =
      "$location/getTotalDriverDurationToday.php";

  //==================Blog=============
  static String profile = '$server/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";

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

  static String auth = '$server/auth';
  static String login = "$auth/login.php";
  static String loginJwtRider = "$server/login.php";
  static String loginJwtWalletRider = "$seferPaymentServer/loginWallet.php";
  static String loginFirstTime = "$server/loginFirstTime.php";
  static String getTesterApp = "$auth/Tester/getTesterApp.php";
  static String updateTesterApp = "$auth/Tester/updateTesterApp.php";
  static String signUp = "$auth/signup.php";
  static String sendVerifyEmail = "$auth/sendVerifyEmail.php";
  static String loginFromGooglePassenger = "$auth/loginFromGooglePassenger.php";
  static String checkPhoneNumberISVerfiedPassenger =
      "$auth/checkPhoneNumberISVerfiedPassenger.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 signUpCaptin = "$authCaptin/register.php";
  static String sendVerifyEmailCaptin = "$authCaptin/sendVerifyEmail.php";
  static String sendVerifyOtpMessage = "$server/auth/otpmessage.php";
  static String verifyOtpMessage = "$server/auth/verifyOtpMessage.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 updatePassengersInvitation =
      "$server/ride/invitor/updatePassengersInvitation.php";
  static String updateDriverInvitationDirectly =
      "$server/ride/invitor/updateDriverInvitationDirectly.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 getAdminUser = "$server/Admin/adminUser/get.php";
  static String addError = "$server/Admin/errorApp.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 sendSmsFromPHP =
      '$server/auth/sms_new_backend/sendOtpPassenger.php';
  static String verifyOtpPassenger =
      '$server/auth/passengerOTP/verifyOtpPassenger.php';
  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 getSender = "$server/auth/sms/getSender.php";
  static String checkStatus = "https://sms.kazumi.me/api/sms/check-status";
  static String updatePhoneInvalidSMSPassenger =
      "$server/auth/sms/updatePhoneInvalidSMSPassenger.php";
}
