title: Matrix from table in blade laravel
body: <p>I have   </p>
  
  <blockquote>
    <p>table called "matrixs", field are (kriteria1, kriteria2, grade)</p>
  </blockquote>
  
  <p>in my mvc I did this :</p>
  
  <blockquote>
    <p>First by calling my model called "matrix" in "AHPController" :</p>
  </blockquote>
  
  <p><code>$alltable = Matrix::all(); return view('result', compact('alltable'));</code>  </p>
  
  <blockquote>
    <p>and called it in "result" view :</p>
  </blockquote>
  
  <p><code>@foreach($alltable as $r1)
                  &lt;tr&gt;
                      &lt;td&gt;{{ $r1-&gt;kriteria1 }}&lt;/td&gt;
                      &lt;td&gt;{{ $r1-&gt;kriteria2 }}&lt;/td&gt;
                      &lt;td&gt;{{ $r1-&gt;grade }}&lt;/td&gt;
                  &lt;/tr&gt;
              @endforeach</code>   </p>
  
  <blockquote>
    <p>I got this result</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/hYrLP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hYrLP.png" alt="enter image description here"></a></p>
  
  <p>how to echo it in blade so it become like this : <a href="https://i.stack.imgur.com/64fR8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/64fR8.png" alt="enter image description here"></a> </p>
  
  <p>just ignore the color, only need the matrix shown in blade in that format. Thank you.</p>