I changed my view iterator to the following and i'm getting neatly formatted numbers, it doesn't feel very neat or clever to be doing this - is there a laravel way of doing it?
https://paste.laravel.io/q398R
<?php
if ($key == 'item_weight' || $key == 'item_dim1' || $key == 'item_dim2'|| $key == 'item_dim3'|| $key == 'item_value'|| $key == 'item_insured_value')
{
$val = number_format($val, 2, '.', ',');
}
?>
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community