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
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?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),
|
||
]);
|
||
}
|
||
}
|