<?php

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class SendMail extends Mailable
{
    use Queueable, SerializesModels;

    public $info = [];

    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct($info)
    {
        $this->info = $info;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this
 //           ->from('Administradora Danoral - Recibos')
            ->view('mails.solicitud_personal', $this->info)
            ->subject('Solicitud de Personal');
//             ->attachFromStorage('presentacion_4288.pdf', 'presentacion.pdf', [
//                'mime' => 'application/pdf'
//            ])
//            ->attachFromStorage('notificacion_pagos_web.pdf', 'notificacion_pagos_web.pdf', [
//                'mime' => 'application/pdf'
//            ]);

     }
}
