This commit is contained in:
2025-11-03 13:57:50 +05:00
parent 09c0bec901
commit 5f2760713f
9 changed files with 49 additions and 45 deletions

View File

@@ -4,13 +4,17 @@ namespace App\Modules\Loan\Repositories;
use App\Modules\Loan\Models\Loan;
use App\Modules\Makeable;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Str;
class LoanRepository
{
use Makeable;
public function showRemainingLoan(Loan $record)
/**
* Show remaining loan
*/
public function showRemainingLoan(Loan $record): View
{
$data = $this->fetchCardBalance(
passport_serie: user()->passport_serie(),
@@ -21,6 +25,9 @@ class LoanRepository
return view('module.loan::loan-remaining', compact('data'));
}
/**
* Fetch card card balance from abs
*/
public function fetchCardBalance(string $passport_serie, int|string $passport_id, int|string $account_number): object
{
$curl = curl_init();