func (VS *Server) chooseServiceForDeliveryFromService(c *gin.Context) {
	serviceHTML, _ := VS.getOurService(c, "h_deliveries", "chooseServiceForDeliveryFromService", "serviceHTML, _ := VS.getOurService")

	role := getRole(c)
	var villages []Village
	villages = append(villages, VS.getCentralVillage(c, "h_deliveries", "chooseServiceForDeliveryFromService", "villages = append(villages, VS.getCentralVillage"))
	if role == Admin {
		villages = VS.getAllVillagesFromTheSystem(c, "h_deliveries", "chooseServiceForDeliveryFromService", "villages = VS.getAllVillagesFromTheSystem")
	} else {
		villages = append(villages, VS.getLocalVillage(c, "h_deliveries", "chooseServiceForDeliveryFromService", "villages = append(villages, VS.getLocalVillage"))
	}

	servicesToChoose := VS.selectServiceDeliveryHTML(c, villages, serviceHTML.ID, true)
	render(c, gin.H{
		"services":    servicesToChoose,
		"serviceType": serviceHTML.TypeID,
	}, "choose-service-deliveries.html")
}
// This handler shows the different services that we can select to make a delivery from a Service
This handler shows the different services that we can select to make a delivery from a Service
// This handler shows the different services that we can select to make a delivery from a Service
func (VS *Server) chooseServiceForDeliveryFromService(c *gin.Context) {
	serviceHTML, _ := VS.getOurService(c, "h_deliveries", "chooseServiceForDeliveryFromService", "serviceHTML, _ := VS.getOurService")
	role := getRole(c)
	var villages []Village
	villages = append(villages, VS.getCentralVillage(c, "h_deliveries", "chooseServiceForDeliveryFromService", "villages = append(villages, VS.getCentralVillage"))
	if role == Admin {
		villages = VS.getAllVillagesFromTheSystem(c, "h_deliveries", "chooseServiceForDeliveryFromService", "villages = VS.getAllVillagesFromTheSystem")
	} else {
		villages = append(villages, VS.getLocalVillage(c, "h_deliveries", "chooseServiceForDeliveryFromService", "villages = append(villages, VS.getLocalVillage"))
	}
	servicesToChoose := VS.selectServiceDeliveryHTML(c, villages, serviceHTML.ID, true)
	render(c, gin.H{
		"services":    servicesToChoose,
		"serviceType": serviceHTML.TypeID,
	}, "choose-service-deliveries.html")
}
func ( VS * Server ) chooseServiceForDeliveryFromService ( c * gin . Context ) { serviceHTML , _ := VS . getOurService ( c , " " , " " , " " ) role := getRole ( c ) var villages [ ] Village villages = append ( villages , VS . getCentralVillage ( c , " " , " " , " " ) ) if role == Admin { villages = VS . getAllVillagesFromTheSystem ( c , " " , " " , " " ) } else { villages = append ( villages , VS . getLocalVillage ( c , " " , " " , " " ) ) } servicesToChoose := VS . selectServiceDeliveryHTML ( c , villages , serviceHTML . ID , true ) render ( c , gin . H { " " : servicesToChoose , " " : serviceHTML . TypeID , } , " " ) }
This handler shows the different services that we can select to make a delivery from a Service
This handler shows the different services that we can select to make a delivery from a Service