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 {
}
Line Items
| Item |
Quantity |
Price (€) |
Payment Method |
Payment Status |
Sub-total (€) |
|
for _, item := range booking.Items {
@LineItem(&item)
}
|
|
|
|
|
{ booking.Total } |
|
Add line
}
}