package view import "github.com/rjNemo/rentease/internal/i18n" templ ReportSection(report *ReportViewModel) {

{ i18n.Localize(ctx, "report.section.title") }

{ i18n.Localize(ctx, "report.section.create_pdf") } Share on WhatsApp
for _, row := range report.Lines { }
{ i18n.Localize(ctx, "report.table.id") } { i18n.Localize(ctx, "report.table.name") } { i18n.Localize(ctx, "report.table.from") } { i18n.Localize(ctx, "report.table.to") } { i18n.Localize(ctx, "report.table.revenue") } (€) { i18n.Localize(ctx, "report.table.platform") } { i18n.Localize(ctx, "report.table.platform_fees") } (€) { i18n.Localize(ctx, "report.table.fees") } (€) { i18n.Localize(ctx, "report.table.profit") } (€)
{ row.Id } { row.CustomerName } { row.From } { row.To } { row.Total } { row.Platform } { row.PlatformFees } { row.Fee } { row.Profit }
{ i18n.Localize(ctx, "report.table.totals") } { report.Total } { report.PlatformFees } { report.Fee } { report.Profit }
{ i18n.Localize(ctx, "report.table.card_only") }: { report.CardTotal } { i18n.Localize(ctx, "report.table.booking_only") }: { report.BookingFees }
}