package templates import ( "git.preston-baxter.com/Preston_PLB/capstone/frontend-service/db/models" ) templ DashboardPage(user *models.User) { @Head("Dashboard")
@DashboardNav(user) @DashboardContent(user) @Footer()
@DashboardScript() } templ DashboardNav(user *models.User) { } //Break this up templ DashboardContentNav(user *models.User) { } templ DashboardCard(title, primaryVal, secondaryVal, subtitle string) {
{ title }
{ primaryVal }

{ secondaryVal } { subtitle }

} //Make fmt.stringer the new input //make [][]string //make auth version of widget //make action version of widget templ DashboardTableWidget(title string, table map[string][]string) {

{ title }

for key := range table { } for _, values := range table { for _, val := range values { } }
{ key }
{ val }
} templ DashboardContent(user *models.User) {
@DashboardContentNav(user)
@DashboardCard("Events Recieved", "420,696", "3.3%", "Since Last Month") @DashboardCard("Live Streams Scheduled", "420,696", "3.3%", "Since Last Month") @DashboardCard("Failed Schedules", "420,696", "3.3%", "Since Last Month")
@DashboardTableWidget("Accounts", map[string][]string{"Service": []string{"YouTube", "PCO"}, "Active": []string{"Active", "Active"}})
@DashboardTableWidget("Accounts", map[string][]string{"Service": []string{"YouTube", "PCO"}, "Active": []string{"Active", "Active"}})
} templ DashboardScript() { }