From 3587af0e70dadf7bc39eca3738c78acacdd619e5 Mon Sep 17 00:00:00 2001 From: Marcel-Anker Date: Wed, 19 Nov 2025 11:08:34 +0100 Subject: [PATCH] add two tables for statistics for movies and shows --- src/app/app-module.ts | 5 ++ src/app/statistics/statistics.component.html | 91 ++++++++++++++++++-- 2 files changed, 90 insertions(+), 6 deletions(-) diff --git a/src/app/app-module.ts b/src/app/app-module.ts index a2cab07..c0e7b03 100644 --- a/src/app/app-module.ts +++ b/src/app/app-module.ts @@ -25,6 +25,8 @@ import { MatStepperModule } from '@angular/material/stepper'; import { MatCheckboxModule } from '@angular/material/checkbox'; import { MatBadgeModule } from '@angular/material/badge'; import { MatTooltipModule } from '@angular/material/tooltip'; +import { MatPaginatorModule } from '@angular/material/paginator'; +import { MatTableModule } from '@angular/material/table'; import { HeaderComponent } from './header/header.component'; import { HomeComponent } from './home/home.component'; @@ -67,6 +69,7 @@ import { TicketListComponent } from './ticket-list/ticket-list.component'; import { StatisticsComponent } from './statistics/statistics.component'; + @NgModule({ declarations: [ App, @@ -139,6 +142,8 @@ import { StatisticsComponent } from './statistics/statistics.component'; QRCodeComponent, MatBadgeModule, MatTooltipModule, + MatPaginatorModule, + MatTableModule, ], providers: [ provideBrowserGlobalErrorListeners(), diff --git a/src/app/statistics/statistics.component.html b/src/app/statistics/statistics.component.html index 4dd5f10..4ab7190 100644 --- a/src/app/statistics/statistics.component.html +++ b/src/app/statistics/statistics.component.html @@ -1,6 +1,85 @@ - + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
ID{{row.movieId}}Titel{{row.movieTitle}} + Umsatz + {{(row.earnings/100).toFixed(2)}} € + Gebuchte Tickets + {{row.tickets}}
+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ID{{row.showId}}Kinosaal{{row.showHallName}}Film Name{{row.movieTitle}}Datum{{formatDate(row.showStart)}} + Umsatz + {{(row.earnings/100).toFixed(2)}} € + Gebuchte Tickets + {{row.tickets}}
+
+ + +