CompanyAction.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace App\Mail;
  3. use App\Models\Company;
  4. use App\Models\Enums\ObjectAction;
  5. use App\Models\Task;
  6. use App\Models\User;
  7. use Illuminate\Bus\Queueable;
  8. use Illuminate\Contracts\Queue\ShouldQueue;
  9. use Illuminate\Mail\Mailable;
  10. use Illuminate\Mail\Mailables\Content;
  11. use Illuminate\Mail\Mailables\Envelope;
  12. use Illuminate\Queue\SerializesModels;
  13. class CompanyAction extends Mailable
  14. {
  15. use Queueable, SerializesModels;
  16. // private $company;
  17. // private $user;
  18. /**
  19. * Create a new message instance.
  20. */
  21. public function __construct(public Company $company,public User $user,public string $rejectReason='')
  22. {
  23. // $this->company = $company;
  24. // $this->user = $user;
  25. }
  26. /**
  27. * Get the message envelope.
  28. */
  29. public function envelope(): Envelope
  30. {
  31. return new Envelope(
  32. subject: 'Notification of the results of the company you applied for on this system.',
  33. );
  34. }
  35. /**
  36. * Get the message content definition.
  37. */
  38. public function content(): Content
  39. {
  40. return new Content(
  41. //view: 'view.name',
  42. markdown: 'emails.actions.company',
  43. // with: [
  44. // 'company' =>$this->company,
  45. // 'user' =>$this->user,
  46. // ]
  47. );
  48. }
  49. /**
  50. * Get the attachments for the message.
  51. *
  52. * @return array<int, \Illuminate\Mail\Mailables\Attachment>
  53. */
  54. public function attachments(): array
  55. {
  56. return [];
  57. }
  58. }