func (VS *Server) showNewFreePurchase(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "showNewFreePurchase", "service, b := VS.getOurService")
	if !b {
		return
	}
	workers := VS.getWorkersFromSpecificService(c, service.ID, "h_records", "showNewFreePurchase", "workers := VS.getWorkersFromSpecificService")
	workersHTML := VS.usersToHTML(c, workers)
	videos := VS.getAllVideoCoursesByServiceType(c, service.TypeID, "h_records", "showNewFreePurchase", "videos := VS.getAllVideoCoursesByServiceType")
	videosHTML := VS.toViewVideoCourses(c, videos)
	items := VS.getAllItemsForSellServicePurchase(c, service.TypeID)
	render(c, gin.H{
		"workers":     workersHTML,
		"videos":      videosHTML,
		"items":       items,
		"serviceType": service.TypeID,
	}, "new-purchase.html")
}
// Shows the page to introduce the information of the new Purchase form a Service to a Worker
Shows the page to introduce the information of the new Purchase form a Service to a Worker
// Shows the page to introduce the information of the new Purchase form a Service to a Worker
func (VS *Server) showNewFreePurchase(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "showNewFreePurchase", "service, b := VS.getOurService")
	if !b {
		return
	}
	workers := VS.getWorkersFromSpecificService(c, service.ID, "h_records", "showNewFreePurchase", "workers := VS.getWorkersFromSpecificService")
	workersHTML := VS.usersToHTML(c, workers)
	videos := VS.getAllVideoCoursesByServiceType(c, service.TypeID, "h_records", "showNewFreePurchase", "videos := VS.getAllVideoCoursesByServiceType")
	videosHTML := VS.toViewVideoCourses(c, videos)
	items := VS.getAllItemsForSellServicePurchase(c, service.TypeID)
	render(c, gin.H{
		"workers":     workersHTML,
		"videos":      videosHTML,
		"items":       items,
		"serviceType": service.TypeID,
	}, "new-purchase.html")
}
func ( VS * Server ) showNewFreePurchase ( c * gin . Context ) { service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } workers := VS . getWorkersFromSpecificService ( c , service . ID , " " , " " , " " ) workersHTML := VS . usersToHTML ( c , workers ) videos := VS . getAllVideoCoursesByServiceType ( c , service . TypeID , " " , " " , " " ) videosHTML := VS . toViewVideoCourses ( c , videos ) items := VS . getAllItemsForSellServicePurchase ( c , service . TypeID ) render ( c , gin . H { " " : workersHTML , " " : videosHTML , " " : items , " " : service . TypeID , } , " " ) }
Shows the page to introduce the information of the new Purchase form a Service to a Worker
Shows the page to introduce the information of the new Purchase form a Service to a Worker