Format dates in notifications
This commit is contained in:
parent
7d1a164c79
commit
d8e2df004d
@ -99,13 +99,13 @@ class PaymentReceived extends Notification
|
||||
return [
|
||||
$this->invoice->invoice_number,
|
||||
money($this->invoice->amount, $this->invoice->currency_code, true),
|
||||
$this->invoice->due_at,
|
||||
company_date($this->invoice->due_at),
|
||||
trans('invoices.statuses.' . $this->invoice->status),
|
||||
URL::signedRoute('signed.invoices.show', [$this->invoice->id, 'company_id' => $this->invoice->company_id]),
|
||||
route('invoices.show', $this->invoice->id),
|
||||
route('portal.invoices.show', $this->invoice->id),
|
||||
money($this->transaction->amount, $this->transaction->currency_code, true),
|
||||
$this->transaction->paid_at,
|
||||
company_date($this->transaction->paid_at),
|
||||
$this->transaction->payment_method,
|
||||
$this->invoice->contact_name,
|
||||
$this->invoice->company->name
|
||||
|
@ -78,7 +78,7 @@ class Bill extends Notification
|
||||
return [
|
||||
$this->bill->bill_number,
|
||||
money($this->bill->amount, $this->bill->currency_code, true),
|
||||
$this->bill->due_at,
|
||||
company_date($this->bill->due_at),
|
||||
route('bills.show', $this->bill->id),
|
||||
$this->bill->contact_name,
|
||||
$this->bill->company->name
|
||||
|
@ -88,7 +88,7 @@ class Invoice extends Notification
|
||||
return [
|
||||
$this->invoice->invoice_number,
|
||||
money($this->invoice->amount, $this->invoice->currency_code, true),
|
||||
$this->invoice->due_at,
|
||||
company_date($this->invoice->due_at),
|
||||
URL::signedRoute('signed.invoices.show', [$this->invoice->id, 'company_id' => $this->invoice->company_id]),
|
||||
route('invoices.show', $this->invoice->id),
|
||||
route('portal.invoices.show', $this->invoice->id),
|
||||
|
Loading…
x
Reference in New Issue
Block a user