Цю сторінку ще не перекладено українською, тому нижче англійська версія.

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 = [])

Опції

ОпціяЗначення
title, bodyTitle (escaped) and body (developer HTML).
class, class_add, idClasses; id.
subtitle, footer, img_top, img_alt, border, themeBootstrap 5 options.

Приклад

Panel title

Panel content

Card title Subtitle

Card content.

Код

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.

Див. також: html/well, html/jumbotron