panel(), card() html()
A box with a title and a body: a panel under Bootstrap 3, a card under 5 (card() is the same call under its Bootstrap 5 name).
html()->panel($extra = [])
html()->card($extra = [])Options
| Option | Meaning |
|---|---|
title, body | Title (escaped) and body (developer HTML). |
class, class_add, id | Classes; id. |
subtitle, footer, img_top, img_alt, border, theme | Bootstrap 5 options. |
Example
Panel title
Panel content
Card title Subtitle
Card content.
Code
return html()->panel(['title' => 'Panel title', 'body' => 'Panel content'])
. html()->card(['title' => 'Card title', 'subtitle' => 'Subtitle', 'body' => '<p>Card content.</p>', 'footer' => 'Updated today', 'border' => 'info']);Bootstrap 3 and 5
Bootstrap 3 panels; Bootstrap 5 card with the B5 options.
See also: html/well, html/jumbotron