123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace App\Mail;
- use App\Models\Container;
- use App\Models\Enums\ObjectAction;
- use App\Models\Task;
- 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;
- class ContainerAction extends Mailable
- {
- use Queueable, SerializesModels;
-
- public function __construct(public Container $container, protected ObjectAction $objectAction, public array $actions = [])
- {
- }
-
- public function envelope(): Envelope
- {
- return new Envelope(
- subject: $this->container->email_subject ?: $this->container->name,
- );
- }
-
- public function content(): Content
- {
- return new Content(
-
- markdown: 'emails.actions.container',
- );
- }
-
- public function attachments(): array
- {
- return [];
- }
- }
|