<?php

namespace App\Mail;

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

class RequisicionDeclinada extends Mailable
{
    use Queueable, SerializesModels;
    public $requisicion;
    public $comentario;

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

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->subject('Sistema de control del programa operativo anual')
                    ->view('mail.requisicion.declinada');
    }
}
