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.

Property Description
format provides a display format. Supported values: long, short, null.
fromCode specify the source currency code.
toCode specify the display currency code.
site display 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