From d8e2df004d96d04dec31cec8d9ffadcdecdb1764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20=C3=87ak=C4=B1rel?= Date: Sat, 1 Feb 2020 00:14:36 +0300 Subject: [PATCH] Format dates in notifications --- app/Notifications/Portal/PaymentReceived.php | 4 ++-- app/Notifications/Purchase/Bill.php | 2 +- app/Notifications/Sale/Invoice.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Notifications/Portal/PaymentReceived.php b/app/Notifications/Portal/PaymentReceived.php index 001f4575c..837504d77 100644 --- a/app/Notifications/Portal/PaymentReceived.php +++ b/app/Notifications/Portal/PaymentReceived.php @@ -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 diff --git a/app/Notifications/Purchase/Bill.php b/app/Notifications/Purchase/Bill.php index 0eb55cfc9..9aa607692 100644 --- a/app/Notifications/Purchase/Bill.php +++ b/app/Notifications/Purchase/Bill.php @@ -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 diff --git a/app/Notifications/Sale/Invoice.php b/app/Notifications/Sale/Invoice.php index 8b195dabc..ed704ac0b 100644 --- a/app/Notifications/Sale/Invoice.php +++ b/app/Notifications/Sale/Invoice.php @@ -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),