wip
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user