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

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

  ///https://api.intaleq.xyz/intaleq/ride/location
  static String location = 'https://api.intaleq.xyz/intaleq/ride/location';

  /// هذا الرابط خاص برحلات الركاب، ويستخدمه السيرفر الجانبي للرحلات (Ride Server Side) للتعامل مع عمليات إلغاء الرحلات وتحديث حالة الرحلات وغيرها من العمليات المتعلقة بالرحلات.
  /// https://routesy.intaleq.xyz for syria
  /// for jordan https://routesjo.intaleq.xyz
  static String routesOsm = 'https://routesjo.intaleq.xyz';

  ///https://location.intaleq.xyz/intaleq/ride/location
  ///locationServerSide هو السيرفر الجانبي الخاص بموقع السائقين، حيث يتم إرسال تحديثات الموقع من التطبيق إلى هذا السيرفر، ومن ثم يقوم هذا السيرفر بتوزيع هذه التحديثات إلى الركاب المتصلين الذين يتابعون السائق في الوقت الحقيقي.
  static String locationServerSide =
      'https://location.intaleq.xyz/intaleq/ride/location';

  ///https://api.intaleq.xyz/intaleq
  static final String endPoint = 'https://api.intaleq.xyz/intaleq';

  /// هذا الرابط خاص برحلات الركاب، ويستخدمه السيرفر الجانبي للرحلات (Ride Server Side) للتعامل مع عمليات إلغاء الرحلات وتحديث حالة الرحلات وغيرها من العمليات المتعلقة بالرحلات.
  /// https://rides.intaleq.xyz/intaleq
  static final String rideServerSide = 'https://rides.intaleq.xyz/intaleq';

  ///https://api.intaleq.xyz/intaleq
  /// main api link for all api calls except rides and location
  static final String server = 'https://api.intaleq.xyz/intaleq';

  ///https://rides.intaleq.xyz
  /// هذا الرابط خاص برحلات الركاب، ويستخدمه السيرفر الجانبي للرحلات (Ride Server Side) للتعامل مع عمليات إلغاء الرحلات وتحديث حالة الرحلات وغيرها من العمليات المتعلقة بالرحلات.
  static final String serverSocket = 'https://rides.intaleq.xyz';

  ///
  static String googleMapsLink = 'https://maps.googleapis.com/maps/api/';

  /// here map link for searching for places
  static String searcMaps =
      'https://autosuggest.search.hereapi.com/v1/autosuggest';

  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 = "$paymentServer/ride/firebase/add.php";
  static String addTokensDriver = "$server/ride/firebase/addDriver.php";
  static String packageInfo = "$server/auth/packageInfo.php";

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

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

  static String addDrivePayment = "$paymentServer/ride/payment/add.php";
  static String addSeferWallet = "$paymentServer/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 =
      "$rideServerSide/cancelRide/add.php";
  static String cancelRide = "$rideServerSide/cancelRide/get.php";
//-----------------ridessss------------------
  static String addRides = "$rideServerSide/ride/rides/add.php";
  static String getRides = "$rideServerSide/ride/rides/get.php";
  static String getRideOrderID =
      "$rideServerSide/ride/rides/getRideOrderID.php";
  static String getRideStatus = "$rideServerSide/ride/rides/getRideStatus.php";
  static String getRideStatusBegin =
      "$rideServerSide/ride/rides/getRideStatusBegin.php";
  static String getRideStatusFromStartApp =
      "$server/ride/rides/getRideStatusFromStartApp.php";
  static String updateRides = "$rideServerSide/ride/rides/update.php";
  static String updateStausFromSpeed =
      "$rideServerSide/ride/rides/updateStausFromSpeed.php";
  static String deleteRides = "$rideServerSide/ride/rides/delete.php";

//-----------------DriverPayment------------------
  static String adddriverScam = "$server/driver_scam/add.php";
  static String getdriverScam = "$server/ride/driver_scam/get.php";

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

////-----------------DriverPayment------------------
  static String addDriverpayment = "$paymentServer/ride/payment/add.php";
  static String addDriverPaymentPoints =
      "$paymentServer/ride/driverPayment/add.php";
  static String addPaymentTokenPassenger =
      "$paymentServer/ride/passengerWallet/addPaymentTokenPassenger.php";
  static String addPaymentTokenDriver =
      "$paymentServer/ride/driverWallet/addPaymentToken.php";
  static String getDriverPaymentPoints =
      "$paymentServer/ride/driverWallet/get.php";
  static String payWithEcashPassenger =
      "$paymentServer/ride/ecash/passenger/payWithEcash.php";
  static String payWithMTNConfirm =
      "$paymentServer/ride/mtn/passenger/mtn_confirm.php";
  static String payWithMTNStart =
      "$paymentServer/ride/mtn/passenger/mtn_start.php";
  static String payWithSyriatelConfirm =
      "$paymentServer/ride/syriatel/passenger/confirm_payment.php";
  static String payWithSyriatelStart =
      "$paymentServer/ride/syriatel/passenger/start_payment.php";
  static String getDriverpaymentToday = "$paymentServer/ride/payment/get.php";
  static String getCountRide = "$paymentServer/ride/payment/getCountRide.php";
  static String getAllPaymentFromRide =
      "$paymentServer/ride/payment/getAllPayment.php";
  static String getAllPaymentVisa =
      "$paymentServer/ride/payment/getAllPaymentVisa.php";

//-----------------Passenger NotificationCaptain------------------
  static String addNotificationPassenger =
      "$server/ride/notificationPassenger/add.php";
  static String getNotificationPassenger =
      "$server/ride/notificationPassenger/get.php";
  static String updateNotificationPassenger =
      "$server/ride/notificationPassenger/update.php";
//-----------------Driver NotificationCaptain------------------
  static String addNotificationCaptain =
      "$server/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 =
      "$server/ride/notificationCaptain/get.php";
  static String updateNotificationCaptain =
      "$server/ride/notificationCaptain/update.php";
  static String deleteNotificationCaptain =
      "$server/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 = "$server/ride/apiKey/add.php";
  static String getApiKey = "$server/ride/apiKey/get.php";
  static String getCnMap = "$server/auth/cnMap.php";
  static String updateApiKey = "$server/ride/apiKey/update.php";
  static String deleteApiKey = "$server/ride/apiKey/delete.php";
  static String getPlacesSyria = "$server/ride/places_syria/get.php";

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

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

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

  //-----------------license------------------
  static String addLicense = "$server/ride/license/add.php";
  static String getLicense = "$server/ride/license/get.php";
  static String updateLicense = "$server/ride/license/updateFeedBack.php";
//-----------------RegisrationCar------------------
  static String addRegisrationCar = "$server/ride/RegisrationCar/add.php";
  static String getRegisrationCar =
      "${box.read(BoxName.serverChosen)}/server/ride/RegisrationCar/get.php";
  static String selectDriverAndCarForMishwariTrip =
      "$server/ride/RegisrationCar/selectDriverAndCarForMishwariTrip.php";
  static String updateRegisrationCar = "$server/ride/RegisrationCar/update.php";

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

  static String addMishwari = "$server/ride/mishwari/add.php";
  static String cancelMishwari = "$server/ride/mishwari/cancel.php";
  static String getMishwari = "$server/ride/mishwari/get.php";

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

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

  // =====================================
  static String addRateToPassenger = "$server/ride/rate/add.php";
  static String savePlacesServer = "$server/ride/places/add.php";
  static String getapiKey = "$server/ride/apiKey/get.php";
  static String addRateToDriver = "$server/ride/rate/addRateToDriver.php";
  static String getDriverRate = "$server/ride/rate/getDriverRate.php";
  static String getPassengerRate = "$server/ride/rate/getPassengerRate.php";

  ////////////////emails ============//
  static String sendEmailToPassengerForTripDetails =
      "$server/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 =
      '$server/ride/location/get_location_area_links.php';
  static String addpassengerLocation =
      "$locationServerSide/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 getCarsLocationByPassengerVan =
      "$location/getCarsLocationByPassengerVan.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 = "$server/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";
}
