From b83b45d78ed2bc98cf8e1925f0cdcb686e35dc70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= <53110792+CihanSenturk@users.noreply.github.com> Date: Sun, 3 Jul 2022 15:13:41 +0300 Subject: [PATCH] document show amount due dynamized --- app/View/Components/Documents/Show/GetPaid.php | 2 +- app/View/Components/Documents/Show/MakePayment.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/View/Components/Documents/Show/GetPaid.php b/app/View/Components/Documents/Show/GetPaid.php index 5cfbfe249..f1bf20056 100644 --- a/app/View/Components/Documents/Show/GetPaid.php +++ b/app/View/Components/Documents/Show/GetPaid.php @@ -15,7 +15,7 @@ class GetPaid extends Component */ public function render() { - $this->description = trans('general.amount_due') . ': ' . '' . money($this->document->amount, $this->document->currency_code, true) . ''; + $this->description = trans('general.amount_due') . ': ' . '' . money($this->document->amount_due, $this->document->currency_code, true) . ''; return view('components.documents.show.get-paid'); } diff --git a/app/View/Components/Documents/Show/MakePayment.php b/app/View/Components/Documents/Show/MakePayment.php index 8d1703dba..c2406dbd4 100644 --- a/app/View/Components/Documents/Show/MakePayment.php +++ b/app/View/Components/Documents/Show/MakePayment.php @@ -15,7 +15,7 @@ class MakePayment extends Component */ public function render() { - $this->description = trans('general.amount_due') . ': ' . '' . money($this->document->amount, $this->document->currency_code, true) . ''; + $this->description = trans('general.amount_due') . ': ' . '' . money($this->document->amount_due, $this->document->currency_code, true) . ''; return view('components.documents.show.make-payment'); }