pageCard = (pages, req) => ({
  type: "card",
  title: link("/pageedit", req.__("Pages")),
  class: "welcome-page-entity-list mt-1",
  contents:
    (pages.length <= 1
      ? p(
          { class: "mt-2 pe-2" },
          i(
            req.__(
              "Pages are the web pages of your application built with a drag-and-drop builder. They have static content, and by embedding views, dynamic content."
            )
          )
        )
      : "") +
    (pages.length > 0
      ? pageTable(pages, req)
      : div({ class: "mt-2 pe-2" }, p(req.__("No pages")))),
  bodyClass: "py-0 pe-0",
  footer: div(
    a(
      { href: `/pageedit/new`, class: "btn btn-primary" },
      req.__("Create page")
    )
  ),
})
Page Card
@param {*} pages
@param {object} req
@returns {object}