From 75c550e0c16ea917c411c01301eefaac1be74b56 Mon Sep 17 00:00:00 2001 From: 1Day Date: Thu, 2 Dec 2021 12:01:11 +0100 Subject: [PATCH] Fixes requested by IceToast --- app/Notifications/InvoiceNotification.php | 4 ++-- resources/views/admin/settings/index.blade.php | 2 +- .../views/vendor/invoices/templates/default.blade.php | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/Notifications/InvoiceNotification.php b/app/Notifications/InvoiceNotification.php index 78408ae2..65f8ea0d 100644 --- a/app/Notifications/InvoiceNotification.php +++ b/app/Notifications/InvoiceNotification.php @@ -57,12 +57,12 @@ class InvoiceNotification extends Notification return (new MailMessage) ->subject('Your Payment was successful!') ->greeting('Hello,') - ->line("Your payment was processes!.") + ->line("your payment was processed successfully!") ->line('Status: ' . $this->payment->status) ->line('Price: ' . $this->payment->formatToCurrency($this->payment->total_price)) ->line('Type: ' . $this->payment->type) ->line('Amount: ' . $this->payment->amount) - ->line('Balance: ' . $this->user->credits) + ->line('Balance: ' . number_format($this->user->credits,2)) ->line('User ID: ' . $this->payment->user_id) ->attach(storage_path('app/invoice/' . $this->user->id . '/' . now()->format('Y') . '/' . $this->invoice->filename)); } diff --git a/resources/views/admin/settings/index.blade.php b/resources/views/admin/settings/index.blade.php index c8e6ee29..9639dd32 100644 --- a/resources/views/admin/settings/index.blade.php +++ b/resources/views/admin/settings/index.blade.php @@ -168,7 +168,7 @@
- diff --git a/resources/views/vendor/invoices/templates/default.blade.php b/resources/views/vendor/invoices/templates/default.blade.php index deaaf97a..f86f5bba 100644 --- a/resources/views/vendor/invoices/templates/default.blade.php +++ b/resources/views/vendor/invoices/templates/default.blade.php @@ -125,6 +125,9 @@ .cool-gray { color: #6B7280; } + .cool-green { + color: #308d00; + } @@ -140,12 +143,12 @@

- {{ $invoice->name }} {{$invoice->getSerialNumber()}} + {{ $invoice->name }} {{$invoice->getSerialNumber()}}

@if($invoice->status) -

+

{{ $invoice->status }}

@endif