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() {

Booking ID VFNI#{ booking.Id }

Manage a booking

Create PDF

Line Items

for _, item := range booking.Items { }
# Item Quantity Price (€) Payment Method Payment Status Sub-total (€)
{ item.Item } { item.Quantity } { item.Price } { item.PaymentMethod } { item.PaymentStatus } { item.SubTotal }
{ booking.Total }
Add line
} }