title: How to add two numbers in the blade Laravel
body: <p>I need to add two numbers/amount displayed in my blade view, as shown in the image below
  <a href="https://i.stack.imgur.com/BMTCv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BMTCv.png" alt="enter image description here" /></a></p>
  <p>I need to display as 666.68 / 1000 AUD</p>
  <p>Here's my <code>blade</code> codes</p>
  <pre><code>    &lt;td&gt;
            @foreach ($team-&gt;competitionPayments as $payment)
                  {{ $payment-&gt;amount }}
            @endforeach
  
            &lt;br&gt;
  
           {{ $team-&gt;competitionPayments }}
           /
           @foreach ($team-&gt;competitions as $total)
            {{ $total-&gt;pivot-&gt;total_fee .' AUD'}}
           @endforeach
     &lt;/td&gt;
  </code></pre>
  <p>Here's my <code>controller</code> function</p>
  <pre><code>public function detailedRegistrations($competition)
  {
  
      $competitions = $this-&gt;competitionsRepo-&gt;findOrFail($competition);
  
      $teams = $competitions-&gt;teams()-&gt;get();
  
      $payments = $competitions-&gt;payments()-&gt;get();
  
      return view('competitions.detailed-registrations',
                      [
                          'teams'=&gt;$teams,
                          'payments'=&gt;$payments,
                          'competitions'=&gt;$competitions,
                      ]
                  );
  }
  </code></pre>
  <p>Here's the <code>competitionPayments</code> relationship in the <code>Team model</code></p>
  <pre><code>public function competitionPayments()
  {
      return $this-&gt;hasMany(CompetitionPayment::class, 'team_id');
  }
  </code></pre>
  <p>Please give me an idea of how to make this work</p>