title: How can I sum price on all page in the laravel?
body: <p>My query like this : </p>
  
  <pre><code>$orders = DB::table('orders')-&gt;paginate(10);
  </code></pre>
  
  <p>My view blade like this :</p>
  
  <pre><code>@php($total = 0)
  @foreach ($orders as $order)
      &lt;tr&gt;
          &lt;td&gt;{{ $order-&gt;number }}&lt;/td&gt;
          &lt;td&gt;{{ $order-&gt;price }}&lt;/td&gt;
          ....
      &lt;/tr&gt;
      @php($total += $order-&gt;price)
  @endforeach
  ...
  Total : {!! $total !!}
  {{ $orders-&gt;links() }}
  </code></pre>
  
  <p>From the script, I just get total price in one page</p>
  
  <p>How can I get total price in the all page?</p>