This Bootstrap 6 subscription invoice template is a SaaS billing page that shows a paid invoice for one billing period: plan, seats, add-ons, a prorated credit, sales tax, the total paid and the card it was charged to. Use it as a subscription receipt or billing history detail page for software with monthly plans.
How it works
The page sits inside .sbi-page: a navbar with a Drawer menu on small screens, a header with Email receipt and Print buttons, and the .sbi-layout grid. On the left, the .sbi-invoice card holds the issuer, a .sbi-stamp paid stamp, the .sbi-facts list (invoice number, issue date, billing period, billed to), a .sbi-plan summary, the charges table and .sbi-totals. On the right, the .sbi-side column shows the next invoice estimate with period progress, Manage billing links and recent invoices.
script.js formats every data-sbi-money value with Intl.NumberFormat (negative credits get a real minus sign) and turns each data-sbi-date day offset into a date without a year, so the billing period never goes stale. The BILLING object at the top sets the currency, locale and period length and drives the progress bar. Email receipt opens a Bootstrap 6 Dialog with an email field; the form checks the address, shows .is-invalid feedback, then simulates sending, which is where you add fetch().
Customization
--sbi-teal,--sbi-teal-deepand--sbi-teal-softonbodyinstyle.css: change the accent of the stamp, plan box, links and balance row.--sbi-radiusonbody: makes the cards rounder or squarer.BILLING.currencyandBILLING.localeinscript.js: show amounts in EUR, GBP or another currency.BILLING.periodStartOffsetandBILLING.periodDays: move the period and update the progress bar.data-sbi-moneyon any cell: the number that is formatted there.- Remove
.sbi-stampand change.sbi-balancefor an unpaid invoice. - The footer credit links to WebDevSnippets and can be kept or removed.
Use cases
- SaaS products: invoice detail page in the customer billing area
- Membership and subscription sites: monthly receipt with seats and add-ons
- Billing dashboards: show prorated credits after a plan change
Accessibility
The charges table has row headers and a hidden caption, the paid stamp is role="img" with a label, and the progress bar has aria-valuenow and aria-valuetext. The dialog has a labelled title, focuses the email field when shown, and the send result is announced through a polite status region. Below 576 px each charge becomes a labelled block, so the page never scrolls sideways.
Usage notes
The print styles set an A4 @page and print only the invoice card: navbar, sidebar, buttons, dialog and the footer credit are hidden. Sandboxed previews may block window.print().
Bootstrap 6 notes
The receipt form uses a native <dialog class="dialog"> opened with data-bs-toggle="dialog" instead of a BS5 modal, the mobile menu is a <dialog class="drawer">, buttons use btn-solid theme-primary and btn-outline theme-secondary, and badges use badge-subtle. Fields sit in form-field. Built on 6.0.0-alpha.1; alpha APIs can still change.