package views import ( "fmt" "strconv" "github.com/rjNemo/rentease/internal/domains/booking" ) templ BookingById(booking *booking.Booking, items, platforms, paymentMethods []string) { @BaseLayout() {

Booking ID VFNI#{ fmt.Sprintf("%04s", strconv.Itoa(booking.Id)) }

Manage a booking

Line Items

for _, item := range booking.Items { }
# Item Quantity Price Payment Method Payment Status
{ item.Item } { strconv.Itoa(item.Quantity) } { strconv.FormatFloat(item.Price, 'f', 2, 64) } { item.PaymentMethod } { item.PaymentStatus }
Add line
} }