Преглед изворни кода

Fixes requested by IceToast

1Day пре 3 година
родитељ
комит
75c550e0c1

+ 2 - 2
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));
     }

+ 1 - 1
resources/views/admin/settings/index.blade.php

@@ -168,7 +168,7 @@
                                         <!-- logo -->
                                         <div class="form-group">
                                             <div class="custom-file mb-3">
-                                                <input type="file" accept="image/x-icon" class="custom-file-input"
+                                                <input type="file" accept="image/png,image/jpeg,image/jpg" class="custom-file-input"
                                                        name="logo" id="logo">
                                                 <label class="custom-file-label selected"
                                                        for="favicon">{{__('Select Invoice Logo')}}</label>

+ 5 - 2
resources/views/vendor/invoices/templates/default.blade.php

@@ -125,6 +125,9 @@
             .cool-gray {
                 color: #6B7280;
             }
+            .cool-green {
+                color: #308d00;
+            }
         </style>
     </head>
 
@@ -140,12 +143,12 @@
                 <tr>
                     <td class="border-0 pl-0" width="70%">
                         <h4 class="text-uppercase">
-                            <strong>{{ $invoice->name }}</strong> {{$invoice->getSerialNumber()}}
+                            <strong>{{ $invoice->name }} {{$invoice->getSerialNumber()}}</strong>
                         </h4>
                     </td>
                     <td class="border-0 pl-0">
                         @if($invoice->status)
-                            <h4 class="text-uppercase cool-gray">
+                            <h4 class="text-uppercase cool-green">
                                 <strong>{{ $invoice->status }}</strong>
                             </h4>
                         @endif