<?php

namespace App\Mail;

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

class ReservationCancelledMail extends Mailable
{
    use Queueable, SerializesModels;

    public $user_name;
    public $reserve;

    public function __construct($user_name, $reserve)
    {
        $this->user_name = $user_name;
        $this->reserve = $reserve;
    }

    public function build()
    {
        return $this->subject('So-Manager：空き待ちのキャンセルが完了しました')
            ->view('emails.reservation_cancelled')
            ->with([
                'user_name' => $this->user_name,
                'reserve' => $this->reserve,
            ]);
    }
}
