viewCard = (views, req) => ({
  type: "card",
  title: link("/viewedit", req.__("Views")),
  class: "welcome-page-entity-list mt-1",
  bodyClass: "py-0  pe-0",
  contents:
    (views.length <= 1
      ? p(
          { class: "mt-2 pe-2" },
          i(
            req.__(
              "Views display data from tables. A view is a view pattern applied to a table, with configuration."
            )
          )
        )
      : "") +
    (views.length > 0 ? viewTable(views, req) : p(req.__("No views"))),

  footer: div(
    a(
      { href: `/viewedit/new`, class: "btn btn-primary" },
      req.__("Create view")
    )
  ),
})
Views Card
@param {*} views
@param {object} req
@returns {object}