<?php

namespace App\Mail;

use App\Models\BorrowTransaction;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class PerpanjanganDisetujuiMail extends Mailable
{
    use Queueable, SerializesModels;

    public $transaction;

    public function __construct(BorrowTransaction $transaction)
    {
        $this->transaction = $transaction;
    }

    public function build()
    {
        return $this->subject('Perpanjangan Peminjaman Buku Disetujui')
            ->view('emails.perpanjangan_disetujui');
    }
}

