fix(tax): formatCurrency -> formatToCurrency

This commit is contained in:
Jovan Jovanovic 2021-11-06 01:32:51 +01:00
parent 9e8abe314b
commit 9ac391d75b
2 changed files with 2 additions and 2 deletions

View file

@ -173,7 +173,7 @@ class PaypalProductController extends Controller
return $paypalProduct->created_at ? $paypalProduct->created_at->diffForHumans() : '';
})
->editColumn('price', function (PaypalProduct $paypalProduct) {
return $paypalProduct->formatCurrency();
return $paypalProduct->formatToCurrency($paypalProduct->price);
})
->rawColumns(['actions', 'disabled'])
->make();

View file

@ -6,7 +6,7 @@ Your payment has been confirmed; Your credit balance has been updated.<br>
___
### Payment ID: **{{$payment->id}}**<br>
### Status: **{{$payment->status}}**<br>
### Price: **{{$payment->formatCurrency()}}**<br>
### Price: **{{$payment->formatToCurrency($payment->total_price)}}**<br>
### Type: **{{$payment->type}}**<br>
### Amount: **{{$payment->amount}}**<br>
### Balance: **{{$payment->user->credits}}**<br>