Merge pull request #1208 from burakcakirel/date-formatting

Format dates in notifications
This commit is contained in:
Denis Duliçi 2020-02-01 01:17:01 +03:00 committed by GitHub
commit b7e1766f50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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),