migrate to gtea from bistbucket
This commit is contained in:
22
public/restaurant/app/Mail/BillingInvoiceMail.php
Normal file
22
public/restaurant/app/Mail/BillingInvoiceMail.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Mail\Mailable;
|
||||
|
||||
class BillingInvoiceMail extends Mailable
|
||||
{
|
||||
public function __construct(
|
||||
public $shop,
|
||||
public $subscription,
|
||||
public $invoice,
|
||||
public $paymentUrl,
|
||||
public $domainInfo
|
||||
) {}
|
||||
|
||||
public function build()
|
||||
{
|
||||
return $this->subject('Invoice & Subscription Expiry Notice')
|
||||
->view('emails.billing.invoice');
|
||||
}
|
||||
}
|
||||
26
public/restaurant/app/Mail/OrderInvoiceMail.php
Normal file
26
public/restaurant/app/Mail/OrderInvoiceMail.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Modules\Restaurant\Models\Order;
|
||||
|
||||
class OrderInvoiceMail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
public Order $order;
|
||||
|
||||
public function __construct(Order $order)
|
||||
{
|
||||
$this->order = $order;
|
||||
}
|
||||
|
||||
public function build()
|
||||
{
|
||||
return $this->subject("Your Invoice for Order #{$this->order?->order_number}")
|
||||
->markdown('emails.orders.invoice');
|
||||
}
|
||||
}
|
||||
35
public/restaurant/app/Mail/RestaurantOnboardingMail.php
Normal file
35
public/restaurant/app/Mail/RestaurantOnboardingMail.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class RestaurantOnboardingMail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
public $details;
|
||||
|
||||
public function __construct(array $details)
|
||||
{
|
||||
$this->details = $details;
|
||||
}
|
||||
|
||||
public function build()
|
||||
{
|
||||
return $this->subject('Welcome to '.config('app.name'))
|
||||
->markdown('emails.onboarding')
|
||||
->with([
|
||||
'restaurantName' => $this->details['restaurant_name'],
|
||||
'restaurantId' => $this->details['restaurant_id'],
|
||||
'email' => $this->details['email'],
|
||||
'password' => $this->details['password'],
|
||||
'packageName' => $this->details['package_name'],
|
||||
'trialDays' => $this->details['trial_days'],
|
||||
'trialEndDate' => $this->details['trial_end_date'],
|
||||
'loginUrl' => $this->details['login_url'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
29
public/restaurant/app/Mail/SupportTicketCreatedMail.php
Normal file
29
public/restaurant/app/Mail/SupportTicketCreatedMail.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Modules\SupportTicket\Models\SupportTicket;
|
||||
|
||||
class SupportTicketCreatedMail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
public SupportTicket $ticket;
|
||||
|
||||
public function __construct(SupportTicket $ticket)
|
||||
{
|
||||
$this->ticket = $ticket;
|
||||
}
|
||||
|
||||
public function build()
|
||||
{
|
||||
return $this->subject('Support Ticket Created: '.$this->ticket->title)
|
||||
->markdown('emails.support-ticket.created')
|
||||
->with([
|
||||
'ticket' => $this->ticket,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user