package views type BookingViewModel struct { Id string Name string PhoneNumber string CustomerNumber string Email string From string To string Platform string Platforms []string PlatformFees string Items []ItemViewModel ItemList []string PaymentMethods []string Url string Total string } type ItemViewModel struct { Item string Quantity string Price string SubTotal string PaymentMethod string PaymentStatus string } templ BookingById(booking *BookingViewModel) { @BaseLayout() {
| Item | Quantity | Price (€) | Payment Method | Payment Status | Sub-total (€) |
|---|---|---|---|---|---|
| { item.Item } | { item.Quantity } | { item.Price } | { item.PaymentMethod } | { item.PaymentStatus } | { item.SubTotal } | { booking.Total } |