<?php

namespace App\Mail;

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

class SprDeclinado extends Mailable
{
    use Queueable, SerializesModels;
    public $spr;
    public $comentario;

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

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