feat: add domain registration form and email notifications
- Create a new Blade view for domain registration (`registrant-tochuc.blade.php`) to capture organization and manager details. - Implement email templates for new domain orders for both admin (`domain-order-new.blade.php`) and customers (`domain-order-received.blade.php`). - Add CSV exports for client and domain data. - Introduce tests for customer mass assignment, password reset, login throttling, and permission gating. - Ensure service renewals use current pricing and validate ownership for virtual machines. - Validate mass assignment behavior in service model.
This commit is contained in:
@@ -4,12 +4,13 @@ namespace App\Mail\Customer;
|
||||
|
||||
use App\Models\Template;
|
||||
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 DomainOrderStatusMail extends Mailable
|
||||
class DomainOrderStatusMail extends Mailable implements ShouldQueue
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
@@ -21,14 +22,14 @@ class DomainOrderStatusMail extends Mailable
|
||||
public function envelope(): Envelope
|
||||
{
|
||||
return new Envelope(
|
||||
subject: str_replace('{\$domain_name}', $this->data['domain_name'] ?? '', $this->template->subject),
|
||||
subject: str_replace('{$domain_name}', $this->data['domain_name'] ?? '', $this->template->subject),
|
||||
);
|
||||
}
|
||||
|
||||
public function content(): Content
|
||||
{
|
||||
$message = str_replace(
|
||||
['{\$company_name}', '{\$company_logo}', '{\$domain_name}', '{\$client_name}', '{\$order_num}', '{\$reason}'],
|
||||
['{$company_name}', '{$company_logo}', '{$domain_name}', '{$client_name}', '{$order_num}', '{$reason}'],
|
||||
[$this->data['company_name'] ?? '', $this->data['company_logo'] ?? '', $this->data['domain_name'] ?? '', $this->data['client_name'] ?? '', $this->data['order_num'] ?? '', $this->data['reason'] ?? ''],
|
||||
$this->template->message
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user