wip
This commit is contained in:
1 parent
09c0bec901
commit
5f2760713f
9 files changed
+49
-45
No files matched your search
@@ -4,13 +4,17 @@
|
||||
|
||||
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 @@ public function showRemainingLoan(Loan $record)
|
||||
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