Loheide-eu-mitarbeiterplatt.../plugins-core/stellen/src/Mail/ApplicationReceived.php
Friederich Loheide 993d49c99c
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m18s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m1s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m33s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m8s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m42s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m37s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 5m43s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m38s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s
Neues Modul Interne Stellenausschreibungen (0.28.0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 10:16:48 +00:00

37 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Inhaus\Plugins\Stellen\Mail;
use App\Models\User;
use App\Support\Branding;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
use Inhaus\Plugins\Stellen\Models\JobPosting;
/**
* Hinweis auf eine neue Bewerbung – ohne Anhang, die Unterlagen liegen vertraulich im Portal.
*/
class ApplicationReceived extends Mailable implements ShouldQueue
{
use Queueable;
use SerializesModels;
public function __construct(public JobPosting $posting, public User $applicant) {}
public function envelope(): Envelope
{
return new Envelope(subject: 'Neue Bewerbung: '.$this->posting->title, replyTo: [$this->applicant->email]);
}
public function content(): Content
{
return new Content(view: 'stellen::mail.application', with: [
'portalName' => app(Branding::class)->portalName(),
'url' => route('jobs.applications', $this->posting),
]);
}
}