Currency Column

Currency Column

List Column

currency - displays the value as a formatted currency

total_amount:
    label: Loan amount
    type: currency

This column is introduced after installing the Currency plugin (opens new window) available on the October CMS marketplace. You may install it with the following command.

php artisan plugin:install Responsiv.Currency

The following properties are supported.

PropertyDescription
formatprovides a display format. Supported values: long, short, null.
fromCodespecify the source currency code.
toCodespecify the display currency code.
sitedisplay the currency using the multisite definition context. Default: false

Use the format property to display the column value using a longer format.

total_amount:
    label: Loan amount
    type: currency
    format: long

Set the site property to true if the model value is stored using the multisite definition. This will automatically set the toCode and fromCode values for the site definition.

total_amount:
    label: Loan amount
    type: currency
    site: true
On This Page