package view import ( "strconv" "github.com/rjNemo/rentease/internal/booking" ) templ LineItem(item *booking.Item) { { item.Item } { strconv.Itoa(item.Quantity) } { strconv.FormatFloat(item.Price, 'f', 2, 64) } { item.PaymentMethod } { item.PaymentStatus } { strconv.FormatFloat(float64(item.Quantity)*item.Price,'f',2,64) } }