package view import ( "fmt" "github.com/rjNemo/rentease/internal/view/layout" ) templ BookingById(booking *BookingViewModel) { @layout.BaseLayout() { { booking.Name } { booking.Id } Create PDF if booking.Canceled { Canceled } else { Cancel } @BookingForm(*booking) Line Items Add Payment Item Quantity Price (€) Payment Method Payment Status Sub-total (€) for _, item := range booking.Items { @LineItem(&item) } Total: { booking.Total } Add New Line Item Item for _, item := range booking.ItemList { { item } } Quantity Price (€) Payment Method for _, paymentMethod := range booking.PaymentMethods { { paymentMethod } } Add Line Item @PaymentModal(booking.PaymentUrl) } } templ PaymentModal(paymentUrl string) { Add Payment Amount Payment Method Select payment method Cash Card Cheque Bank Transfer Add Payment }