title: Data array not beeing passed to Mail View
body: <p>I'm Trying to pass a multidimensional array with data of multiple users to my view, so that I can send it as a list on an email. But I always get the error "undefined variable" when I call my array in my mail view.</p>
  
  <p>I have already tried to call my array with foreach and for, neither did work, also tried to call the keys in my array directly on my view, but I also got "undefined variable".</p>
  
  <p><strong>Function:</strong></p>
  
  <pre><code>    public function handle()
      {
          $tubes = DB::table('tubes')-&gt;where('status','received')-&gt;select('TubeID', 'TestArrivalDate')-&gt;get();
          $tubes = json_decode($tubes, true);
          if(!is_null($tubes)){
          $date = date('Y-m-d H:i:s');
            foreach ($tubes as $tube) {
              $diff = Carbon\Carbon::parse($tube['TestArrivalDate'])-&gt;diffInDays();
              $Email = DB::table('tubes')-&gt;join('profile', 'profile.ProfileID', 'tubes.ProfileID')-&gt;where('TubeID', $tube['TubeID'])-&gt;select('ProfileEmail', 'ProfileName')-&gt;get();
              $Email = array_flatten(json_decode($Email, true));
              if ($diff &gt; 14) {
                $TubesDelay[]=array('TubeID' =&gt; $tube['TubeID'],'TestArrivalDate' =&gt; $tube['TestArrivalDate'], 'DaysWaiting' =&gt; $diff, 'ProfileEmail' =&gt; $Email[0], 'ProfileName' =&gt; $Email[1]);
              }
            }
            // dd($TubesDelay);
            Mail::send('mail.DelayedSamplesMail', $TubesDelay, function($message)
            {
                $message-&gt;from('kundenservice@test', 'kundenservice@test');
                $message-&gt;to(['m.lara@test'])-&gt;subject('Sample Delay');
            });
          }
     }
  </code></pre>
  
  <p><strong>View:</strong></p>
  
  <pre><code>  &lt;span style="font-size: 11pt; font-family: Poppins Light"&gt;
      &lt;br /&gt;
      Following Samples are received and have delay:
      @foreach ($TubesDelay as $sample)
        &lt;td&gt;{{$sample}}&lt;/td&gt;
      @endforeach
      &lt;br /&gt;
      &lt;br /&gt;
      &lt;br /&gt;
    &lt;/span&gt;
  </code></pre>
  
  <p>What I want is to put the data of all the users in the array in the email as a list. So my array looks like this</p>
  
  <pre><code>array:5 [
    0 =&gt; array:5 [
      "TubeID" =&gt; 1005029
      "TestArrivalDate" =&gt; "2019-06-21"
      "DaysWaiting" =&gt; 61
      "ProfileEmail" =&gt; "mat@test.world"
      "ProfileName" =&gt; "MLB"
    ]
    1 =&gt; array:5 [
      "TubeID" =&gt; 1005034
      "TestArrivalDate" =&gt; "2019-07-08"
      "DaysWaiting" =&gt; 44
      "ProfileEmail" =&gt; "mat@test.com"
      "ProfileName" =&gt; "MLB2"
    ]
  </code></pre>
  
  <p>I would like to have all the data in the array listed </p>
  
  <pre><code>TubeID 1005029
  TestArrivalDate 2019-06-21
  DaysWaiting 61
  ProfileEmail mat@test.world
  ProfileName MLB
  
  TubeID 1005034
  TestArrivalDate2019-07-08
  DaysWaiting 44
  ProfileEmail mat@test.com
  ProfileName MLB2
  </code></pre>