diff --git a/app/Modules/Loan/Repositories/LoanRepository.php b/app/Modules/Loan/Repositories/LoanRepository.php index ed3778e..e6f6221 100644 --- a/app/Modules/Loan/Repositories/LoanRepository.php +++ b/app/Modules/Loan/Repositories/LoanRepository.php @@ -18,9 +18,7 @@ class LoanRepository account_number: $record->account_number, ); - return $data->errCode != 0 - ? view('module.loan::loan-loan-remaining', compact('data')) - : view('module.loan::loan-loan-remaining', compact('data')); + return view('module.loan::loan-remaining', compact('data')); } public function fetchCardBalance(string $passport_serie, int|string $passport_id, int|string $account_number): object diff --git a/app/Modules/Loan/Resources/Views/loan-remaining.blade.php b/app/Modules/Loan/Resources/Views/loan-remaining.blade.php index c1820dd..a3f6199 100644 --- a/app/Modules/Loan/Resources/Views/loan-remaining.blade.php +++ b/app/Modules/Loan/Resources/Views/loan-remaining.blade.php @@ -1,3 +1,6 @@ +@if($data->errCode != 0) +