title: Email in laravel shows variable instead of the value
body: <p>I'm not sure what im missing here. So im working on emailing the client whenever there's an update however it doesnt show the value of variable or array passed here. So there's 3 files. First we start in the
  controller.</p>
  <pre><code>$details = [
          'title'=&gt; &quot;[Helpdesk] Your ticket #{$ids[0]} has an update.&quot;,
          'body' =&gt; 'Your ticket request status has been updated.',
          'first_name' =&gt; $first_name,
          'last_name' =&gt; $last_name,
          'ticket_id' =&gt; $ids[0],
          'status' =&gt; $status,
          'agent_name' =&gt; $agent_name,
      ];
      
  
      //unrelated codes
  
      else if($status == 'open' || $status == 'assigned')
          {
              
              \Mail::to($email)-&gt;send(new \App\Mail\OpenAssignTicket($details));
          }
  </code></pre>
  <p>Now this is in the OpenAssignTicket file.</p>
  <pre><code>&lt;?php
  
  namespace App\Mail;
  
  use Illuminate\Bus\Queueable;
  use Illuminate\Contracts\Queue\ShouldQueue;
  use Illuminate\Mail\Mailable;
  use Illuminate\Queue\SerializesModels;
  
  class OpenAssignTicket extends Mailable
  {
  use Queueable, SerializesModels;
  public $details;
  
  /**
   * Create a new message instance.
   *
   * @return void
   */
  public function __construct($details)
  {
      $this-&gt;details = $details;
  }
  
  /**
   * Build the message.
   *
   * @return $this
   */
  public function build()
  {
      return $this-&gt;subject('Mail from Support')-&gt;view('emails.ticketAssignedOpen');
  }
  }
  </code></pre>
  <p>And finally this is in the resource view file.</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
  &lt;meta charset=&quot;UTF-8&quot;&gt;
  &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
  &lt;title&gt;Support&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt;{{$details['title']}}&lt;/h1&gt;
  &lt;p&gt;Dear {{$details['first_name'][0]}},&lt;/p&gt;
  &lt;br&gt;
  &lt;p&gt;You ticket {{$details['ticket_id']}} has been updated to {{$details['status']}}. &lt;/p&gt;
  &lt;br&gt;
  &lt;/p&gt;Our Agent {{$details['agent_name'][0]}} is currently working on your request. We will get 
   back to you as soon as possible.&lt;/p&gt;
  
  
  &lt;p&gt;Thank you.&lt;/p&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;p&gt;From,&lt;/p&gt;
  &lt;br&gt;
  &lt;p&gt;Support&lt;/p&gt;
  </code></pre>
  
  
  <p>And in the email received it's exactly like that with the $details when it's supposed to show the value.</p>
  <p>This is in another email that works.</p>
  <p>Same controller file.</p>
  <pre><code>else{
         \Mail::to($email)-&gt;send(new \App\Mail\NewTicketMail($details));
        }
  </code></pre>
  <p>NewTicketMail file in the App/Mail
  &lt;?php</p>
  <pre><code> namespace App\Mail;
  
   use Illuminate\Bus\Queueable;
   use Illuminate\Contracts\Queue\ShouldQueue;
   use Illuminate\Mail\Mailable;
   use Illuminate\Queue\SerializesModels;
  
   class NewTicketMail extends Mailable
   {
     use Queueable, SerializesModels;
     public $details;
  
  /**
   * Create a new message instance.
   *
   * @return void
   */
  public function __construct($details)
  {
      $this-&gt;details = $details;
  }
  
  /**
   * Build the message.
   *
   * @return $this
   */
  public function build()
  {
      return $this-&gt;subject('Mail from VeecoTech Support')-&gt;view('emails.new_ticket_mail');
  }
  }
  </code></pre>
  <p>And finally resource view file.</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
  &lt;meta charset=&quot;UTF-8&quot;&gt;
  &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
  &lt;title&gt;Support&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt;{{$details['title']}}&lt;/h1&gt;
  &lt;p&gt;Dear {{$details['first_name'][0]}},&lt;/p&gt;
  &lt;br&gt;
  &lt;p&gt;You ticket {{$details['ticket_id']}} has been updated to {{$details['status']}}.&lt;/p&gt;
  
  
  &lt;p&gt;Thank you.&lt;/p&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;p&gt;From,&lt;/p&gt;
  &lt;br&gt;
  &lt;p&gt;Support&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>The 2nd email works where values are shown.</p>