name = $name; $this->expense_number = $expense_number; $this->tanggal = $tanggal; $this->total = $total; $this->url = $url; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: 'Expense Rejected', ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: 'mail.rejected', with: [ 'name' => $this->name, 'expense_number' => $this->expense_number, 'tanggal' => $this->tanggal, 'total' => $this->total, 'url' => $this->url, ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } /** * Render the Blade email template as an HTML string (for Brevo API). */ public function renderHtml(): string { return View::make('mail.rejected', [ 'name' => $this->name, 'expense_number' => $this->expense_number, 'tanggal' => $this->tanggal, 'total' => $this->total, 'url' => $this->url, ])->render(); } }