I need to get my cart total weight in order to use it in my shipping calculator.

here is my code:

```
@foreach($item->attributes as $sss)
  {{number_format($item->quantity * $sss['value'], 0)}} KG
@endforeach

```

here is how it looks like:

[![result1](https://i.stack.imgur.com/uXAow.jpg)](https://i.stack.imgur.com/uXAow.jpg)

I need to get `92` as sample.

> 
> PS: I really prefer if I can do it in backend and have something like
> `{{$total_weight}}` in front-end only.
> 
> 
> 

how can I do that?

UPDATE
======

[![screen2](https://i.stack.imgur.com/7QuAX.jpg)](https://i.stack.imgur.com/7QuAX.jpg)