Format dates in notifications

This commit is contained in:
Burak Çakırel 2020-02-01 00:14:36 +03:00
parent 7d1a164c79
commit d8e2df004d
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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),