123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- namespace App\Mail;
- use App\Models\Company;
- use App\Models\Enums\ObjectAction;
- use App\Models\Task;
- use App\Models\User;
- 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 CompanyAction extends Mailable
- {
- use Queueable, SerializesModels;
-
- public function __construct(public Company $company,public User $user,public string $rejectReason='')
- {
- }
-
- public function envelope(): Envelope
- {
- return new Envelope(
- subject: 'Notification of the results of the company you applied for on this system.',
- );
- }
-
- public function content(): Content
- {
- return new Content(
-
- markdown: 'emails.actions.company',
- );
- }
-
- public function attachments(): array
- {
- return [];
- }
- }
|