@foreach ($order_sent->getAttributes() as $key => $val) <?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, '.', ','); ?> <tr> <td>{{$key}}</td> <td><code> {{$val}}</code></td> </tr> @endforeach