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 { }
@BookingForm(*booking)

Line Items

for _, item := range booking.Items { @LineItem(&item) }
Item Quantity Price (€) Payment Method Payment Status Sub-total (€)
Total: { booking.Total }
Add New Line Item
} }