<?php

namespace App\Mail;

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

class OrdenLavanderiaTerminadaAdmin extends Mailable
{
    use Queueable;
    use SerializesModels;

    public function __construct(
        public readonly OrdenLavanderia $orden
    ) {
    }

    public function build(): self
    {
        return $this->subject('Orden de lavandería terminada #'.$this->orden->folio_unico)
            ->view('emails.ordenes.terminada_admin', [
                'orden' => $this->orden,
            ]);
    }
}
