update composre

This commit is contained in:
2025-03-24 01:11:33 +05:00
parent 785e48d175
commit 2785f4afdf
6 changed files with 248 additions and 242 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Modules\LoanRemainingOrder\Actions\FetchRemainingLoanFromBilling;
use App\Repos\System\Settings\Legal\PassportRepo; use App\Repos\System\Settings\Legal\PassportRepo;
use Illuminate\Http\JsonResponse; use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request; use Illuminate\Http\Request;
@@ -22,67 +23,12 @@ class FetchLoanRemainingController extends Controller
'account_number' => ['required', 'string', 'max:255'], 'account_number' => ['required', 'string', 'max:255'],
]); ]);
if (app()->isLocal()) { $response = FetchRemainingLoanFromBilling::make()->handle(
return $this->sampleResponse(); passport_serie: $request->passport_serie,
} passport_id: $request->passport_id,
account_number: $request->account_number,
$curl = curl_init(); );
curl_setopt_array($curl, [
CURLOPT_URL => 'http://10.3.158.102:9999/api/loaninfo',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => sprintf('
{
"idSeria": "%s",
"idNo": "%s",
"accountCode": "%s"
}
',
$request->passport_serie,
$request->passport_id,
$request->account_number,
),
CURLOPT_HTTPHEADER => [
'Authorization: Basic dGJ1c2VyOlFBWndzeDEyMw==',
'Content-Type: application/json',
],
]);
$response = curl_exec($curl);
curl_close($curl);
return response()->json($response); return response()->json($response);
} }
/**
* Sample request
*/
public function sampleResponse(): JsonResponse
{
return response()->json([
'idSeria' => 'I-AS',
'idNo' => '379514',
'accountCode' => '14208934130700002997232',
'clientName' => 'Joraýew Mämmetjan Galandarowiç',
'docNum' => '530/23',
'docSum' => 20000,
'docMonthSum' => 556,
'docPayed' => 10860,
'balans' => 9140,
'percentBalance' => 0,
'branchName' => '"TÜRKMENBAŞY" TPTB-nyň Çandybil şahamçasy',
'branchMfo' => '390101307',
'errCode' => 0,
'message' => 'ÜSTÜNLIKLI.',
'messageRu' => 'УСПЕШНО.',
'messageEn' => 'SUCCESS.',
]);
}
} }

View File

@@ -0,0 +1,88 @@
<?php
namespace App\Modules\LoanRemainingOrder\Actions;
use Laravel\Nova\Makeable;
class FetchRemainingLoanFromBilling
{
use Makeable;
/**
* Make request to billing api
*
* @param string $passport_serie
* @param string $passport_id
* @param string $account_number
*
* @return array<string, int|bool|null|string>
*/
public function handle(string $passport_serie, int|string $passport_id, int|string $account_number): array
{
if (app()->isLocal()) {
return $this->sampleResponse();
}
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'http://10.3.158.102:9999/api/loaninfo',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => sprintf('
{
"idSeria": "%s",
"idNo": "%s",
"accountCode": "%s"
}
',
$passport_serie,
$passport_id,
$account_number,
),
CURLOPT_HTTPHEADER => [
'Authorization: Basic dGJ1c2VyOlFBWndzeDEyMw==',
'Content-Type: application/json',
],
]);
/** @var array<string, int|bool|null|string>|bool */
$response = curl_exec($curl);
curl_close($curl);
return is_array($response) ? $response : [];
}
/**
* Sample request
*
* @return array<string, int|bool|null|string>
*/
public function sampleResponse(): array
{
return [
'idSeria' => 'I-AS',
'idNo' => '379514',
'accountCode' => '14208934130700002997232',
'clientName' => 'Joraýew Mämmetjan Galandarowiç',
'docNum' => '530/23',
'docSum' => 20000,
'docMonthSum' => 556,
'docPayed' => 10860,
'balans' => 9140,
'percentBalance' => 0,
'branchName' => '"TÜRKMENBAŞY" TPTB-nyň Çandybil şahamçasy',
'branchMfo' => '390101307',
'errCode' => 0,
'message' => 'ÜSTÜNLIKLI.',
'messageRu' => 'УСПЕШНО.',
'messageEn' => 'SUCCESS.',
];
}
}

View File

@@ -3,16 +3,32 @@
namespace App\Modules\LoanRemainingOrder\Controllers; namespace App\Modules\LoanRemainingOrder\Controllers;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Modules\LoanRemainingOrder\Actions\FetchRemainingLoanFromBilling;
use App\Repos\System\Settings\Legal\PassportRepo;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Validation\Rule;
class LoanRemainingOrderController extends Controller class LoanRemainingOrderController extends Controller
{ {
/** /**
* Display a listing of the resource. * Return remaning loan of person.
*/ */
public function index(Request $request): void public function index(Request $request): JsonResponse
{ {
// $request->validate([
'passport_serie' => ['required', 'string', Rule::in(array_keys(PassportRepo::values()))],
'passport_id' => ['required', 'numeric', 'digits:6'],
'account_number' => ['required', 'numeric'],
]);
$response = FetchRemainingLoanFromBilling::make()->handle(
passport_serie: $request->passport_serie,
passport_id: $request->passport_id,
account_number: $request->account_number,
);
return response()->json($response);
} }
/** /**

308
composer.lock generated
View File

@@ -1403,16 +1403,16 @@
}, },
{ {
"name": "egulias/email-validator", "name": "egulias/email-validator",
"version": "4.0.3", "version": "4.0.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/egulias/EmailValidator.git", "url": "https://github.com/egulias/EmailValidator.git",
"reference": "b115554301161fa21467629f1e1391c1936de517" "reference": "d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/egulias/EmailValidator/zipball/b115554301161fa21467629f1e1391c1936de517", "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa",
"reference": "b115554301161fa21467629f1e1391c1936de517", "reference": "d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -1458,7 +1458,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/egulias/EmailValidator/issues", "issues": "https://github.com/egulias/EmailValidator/issues",
"source": "https://github.com/egulias/EmailValidator/tree/4.0.3" "source": "https://github.com/egulias/EmailValidator/tree/4.0.4"
}, },
"funding": [ "funding": [
{ {
@@ -1466,7 +1466,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2024-12-27T00:36:43+00:00" "time": "2025-03-06T22:45:56+00:00"
}, },
{ {
"name": "eminiarts/nova-tabs", "name": "eminiarts/nova-tabs",
@@ -2742,16 +2742,16 @@
}, },
{ {
"name": "laravel/pint", "name": "laravel/pint",
"version": "v1.21.1", "version": "v1.21.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/pint.git", "url": "https://github.com/laravel/pint.git",
"reference": "c44bffbb2334e90fba560933c45948fa4a3f3e86" "reference": "370772e7d9e9da087678a0edf2b11b6960e40558"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/pint/zipball/c44bffbb2334e90fba560933c45948fa4a3f3e86", "url": "https://api.github.com/repos/laravel/pint/zipball/370772e7d9e9da087678a0edf2b11b6960e40558",
"reference": "c44bffbb2334e90fba560933c45948fa4a3f3e86", "reference": "370772e7d9e9da087678a0edf2b11b6960e40558",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -2762,9 +2762,9 @@
"php": "^8.2.0" "php": "^8.2.0"
}, },
"require-dev": { "require-dev": {
"friendsofphp/php-cs-fixer": "^3.70.2", "friendsofphp/php-cs-fixer": "^3.72.0",
"illuminate/view": "^11.44.1", "illuminate/view": "^11.44.2",
"larastan/larastan": "^3.1.0", "larastan/larastan": "^3.2.0",
"laravel-zero/framework": "^11.36.1", "laravel-zero/framework": "^11.36.1",
"mockery/mockery": "^1.6.12", "mockery/mockery": "^1.6.12",
"nunomaduro/termwind": "^2.3", "nunomaduro/termwind": "^2.3",
@@ -2804,7 +2804,7 @@
"issues": "https://github.com/laravel/pint/issues", "issues": "https://github.com/laravel/pint/issues",
"source": "https://github.com/laravel/pint" "source": "https://github.com/laravel/pint"
}, },
"time": "2025-03-11T03:22:21+00:00" "time": "2025-03-14T22:31:42+00:00"
}, },
{ {
"name": "laravel/prompts", "name": "laravel/prompts",
@@ -5696,16 +5696,16 @@
}, },
{ {
"name": "psy/psysh", "name": "psy/psysh",
"version": "v0.12.7", "version": "v0.12.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/bobthecow/psysh.git", "url": "https://github.com/bobthecow/psysh.git",
"reference": "d73fa3c74918ef4522bb8a3bf9cab39161c4b57c" "reference": "85057ceedee50c49d4f6ecaff73ee96adb3b3625"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/d73fa3c74918ef4522bb8a3bf9cab39161c4b57c", "url": "https://api.github.com/repos/bobthecow/psysh/zipball/85057ceedee50c49d4f6ecaff73ee96adb3b3625",
"reference": "d73fa3c74918ef4522bb8a3bf9cab39161c4b57c", "reference": "85057ceedee50c49d4f6ecaff73ee96adb3b3625",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -5769,9 +5769,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/bobthecow/psysh/issues", "issues": "https://github.com/bobthecow/psysh/issues",
"source": "https://github.com/bobthecow/psysh/tree/v0.12.7" "source": "https://github.com/bobthecow/psysh/tree/v0.12.8"
}, },
"time": "2024-12-10T01:58:33+00:00" "time": "2025-03-16T03:05:19+00:00"
}, },
{ {
"name": "ralouphie/getallheaders", "name": "ralouphie/getallheaders",
@@ -5819,16 +5819,16 @@
}, },
{ {
"name": "ramsey/collection", "name": "ramsey/collection",
"version": "2.1.0", "version": "2.1.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/ramsey/collection.git", "url": "https://github.com/ramsey/collection.git",
"reference": "3c5990b8a5e0b79cd1cf11c2dc1229e58e93f109" "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/ramsey/collection/zipball/3c5990b8a5e0b79cd1cf11c2dc1229e58e93f109", "url": "https://api.github.com/repos/ramsey/collection/zipball/344572933ad0181accbf4ba763e85a0306a8c5e2",
"reference": "3c5990b8a5e0b79cd1cf11c2dc1229e58e93f109", "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -5889,9 +5889,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/ramsey/collection/issues", "issues": "https://github.com/ramsey/collection/issues",
"source": "https://github.com/ramsey/collection/tree/2.1.0" "source": "https://github.com/ramsey/collection/tree/2.1.1"
}, },
"time": "2025-03-02T04:48:29+00:00" "time": "2025-03-22T05:38:12+00:00"
}, },
{ {
"name": "ramsey/uuid", "name": "ramsey/uuid",
@@ -6347,16 +6347,16 @@
}, },
{ {
"name": "spatie/laravel-medialibrary", "name": "spatie/laravel-medialibrary",
"version": "11.12.7", "version": "11.12.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/spatie/laravel-medialibrary.git", "url": "https://github.com/spatie/laravel-medialibrary.git",
"reference": "2ca2cd098c856b931f581c02593c06f01dc32a06" "reference": "98d6d26e56d9ea01f757a4307ef03cb4ae563e0d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/spatie/laravel-medialibrary/zipball/2ca2cd098c856b931f581c02593c06f01dc32a06", "url": "https://api.github.com/repos/spatie/laravel-medialibrary/zipball/98d6d26e56d9ea01f757a4307ef03cb4ae563e0d",
"reference": "2ca2cd098c856b931f581c02593c06f01dc32a06", "reference": "98d6d26e56d9ea01f757a4307ef03cb4ae563e0d",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -6440,7 +6440,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/spatie/laravel-medialibrary/issues", "issues": "https://github.com/spatie/laravel-medialibrary/issues",
"source": "https://github.com/spatie/laravel-medialibrary/tree/11.12.7" "source": "https://github.com/spatie/laravel-medialibrary/tree/11.12.8"
}, },
"funding": [ "funding": [
{ {
@@ -6452,20 +6452,20 @@
"type": "github" "type": "github"
} }
], ],
"time": "2025-02-24T09:13:17+00:00" "time": "2025-03-21T09:15:22+00:00"
}, },
{ {
"name": "spatie/laravel-package-tools", "name": "spatie/laravel-package-tools",
"version": "1.19.0", "version": "1.91.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/spatie/laravel-package-tools.git", "url": "https://github.com/spatie/laravel-package-tools.git",
"reference": "1c9c30ac6a6576b8d15c6c37b6cf23d748df2faa" "reference": "b0b509b9b01d77caa431ce9af3a706bc678e09c9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/1c9c30ac6a6576b8d15c6c37b6cf23d748df2faa", "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/b0b509b9b01d77caa431ce9af3a706bc678e09c9",
"reference": "1c9c30ac6a6576b8d15c6c37b6cf23d748df2faa", "reference": "b0b509b9b01d77caa431ce9af3a706bc678e09c9",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -6504,7 +6504,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/spatie/laravel-package-tools/issues", "issues": "https://github.com/spatie/laravel-package-tools/issues",
"source": "https://github.com/spatie/laravel-package-tools/tree/1.19.0" "source": "https://github.com/spatie/laravel-package-tools/tree/1.91.1"
}, },
"funding": [ "funding": [
{ {
@@ -6512,7 +6512,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2025-02-06T14:58:20+00:00" "time": "2025-03-21T09:50:49+00:00"
}, },
{ {
"name": "spatie/laravel-permission", "name": "spatie/laravel-permission",
@@ -10282,16 +10282,16 @@
}, },
{ {
"name": "filp/whoops", "name": "filp/whoops",
"version": "2.17.0", "version": "2.18.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/filp/whoops.git", "url": "https://github.com/filp/whoops.git",
"reference": "075bc0c26631110584175de6523ab3f1652eb28e" "reference": "a7de6c3c6c3c022f5cfc337f8ede6a14460cf77e"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/filp/whoops/zipball/075bc0c26631110584175de6523ab3f1652eb28e", "url": "https://api.github.com/repos/filp/whoops/zipball/a7de6c3c6c3c022f5cfc337f8ede6a14460cf77e",
"reference": "075bc0c26631110584175de6523ab3f1652eb28e", "reference": "a7de6c3c6c3c022f5cfc337f8ede6a14460cf77e",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -10341,7 +10341,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/filp/whoops/issues", "issues": "https://github.com/filp/whoops/issues",
"source": "https://github.com/filp/whoops/tree/2.17.0" "source": "https://github.com/filp/whoops/tree/2.18.0"
}, },
"funding": [ "funding": [
{ {
@@ -10349,7 +10349,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2025-01-25T12:00:00+00:00" "time": "2025-03-15T12:00:00+00:00"
}, },
{ {
"name": "hamcrest/hamcrest-php", "name": "hamcrest/hamcrest-php",
@@ -10403,35 +10403,76 @@
"time": "2020-07-09T08:09:16+00:00" "time": "2020-07-09T08:09:16+00:00"
}, },
{ {
"name": "larastan/larastan", "name": "iamcal/sql-parser",
"version": "v2.9.14", "version": "v0.5",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/larastan/larastan.git", "url": "https://github.com/iamcal/SQLParser.git",
"reference": "78f7f8da613e54edb2ab4afa5bede045228fb843" "reference": "644fd994de3b54e5d833aecf406150aa3b66ca88"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/larastan/larastan/zipball/78f7f8da613e54edb2ab4afa5bede045228fb843", "url": "https://api.github.com/repos/iamcal/SQLParser/zipball/644fd994de3b54e5d833aecf406150aa3b66ca88",
"reference": "78f7f8da613e54edb2ab4afa5bede045228fb843", "reference": "644fd994de3b54e5d833aecf406150aa3b66ca88",
"shasum": ""
},
"require-dev": {
"php-coveralls/php-coveralls": "^1.0",
"phpunit/phpunit": "^5|^6|^7|^8|^9"
},
"type": "library",
"autoload": {
"psr-4": {
"iamcal\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Cal Henderson",
"email": "cal@iamcal.com"
}
],
"description": "MySQL schema parser",
"support": {
"issues": "https://github.com/iamcal/SQLParser/issues",
"source": "https://github.com/iamcal/SQLParser/tree/v0.5"
},
"time": "2024-03-22T22:46:32+00:00"
},
{
"name": "larastan/larastan",
"version": "v2.10.0",
"source": {
"type": "git",
"url": "https://github.com/larastan/larastan.git",
"reference": "05519d721277604487a3ca71bdee87739d8d8716"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/larastan/larastan/zipball/05519d721277604487a3ca71bdee87739d8d8716",
"reference": "05519d721277604487a3ca71bdee87739d8d8716",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-json": "*", "ext-json": "*",
"illuminate/console": "^9.52.16 || ^10.28.0 || ^11.16", "iamcal/sql-parser": "^0.5.0",
"illuminate/container": "^9.52.16 || ^10.28.0 || ^11.16", "illuminate/console": "^9.52.20 || ^10.48.28 || ^11.41.3",
"illuminate/contracts": "^9.52.16 || ^10.28.0 || ^11.16", "illuminate/container": "^9.52.20 || ^10.48.28 || ^11.41.3",
"illuminate/database": "^9.52.16 || ^10.28.0 || ^11.16", "illuminate/contracts": "^9.52.20 || ^10.48.28 || ^11.41.3",
"illuminate/http": "^9.52.16 || ^10.28.0 || ^11.16", "illuminate/database": "^9.52.20 || ^10.48.28 || ^11.41.3",
"illuminate/pipeline": "^9.52.16 || ^10.28.0 || ^11.16", "illuminate/http": "^9.52.20 || ^10.48.28 || ^11.41.3",
"illuminate/support": "^9.52.16 || ^10.28.0 || ^11.16", "illuminate/pipeline": "^9.52.20 || ^10.48.28 || ^11.41.3",
"illuminate/support": "^9.52.20 || ^10.48.28 || ^11.41.3",
"php": "^8.0.2", "php": "^8.0.2",
"phpmyadmin/sql-parser": "^5.9.0",
"phpstan/phpstan": "^1.12.17" "phpstan/phpstan": "^1.12.17"
}, },
"require-dev": { "require-dev": {
"doctrine/coding-standard": "^12.0", "doctrine/coding-standard": "^12.0",
"laravel/framework": "^9.52.16 || ^10.28.0 || ^11.16", "laravel/framework": "^9.52.20 || ^10.48.28 || ^11.41.3",
"mockery/mockery": "^1.5.1", "mockery/mockery": "^1.5.1",
"nikic/php-parser": "^4.19.1", "nikic/php-parser": "^4.19.1",
"orchestra/canvas": "^7.11.1 || ^8.11.0 || ^9.0.2", "orchestra/canvas": "^7.11.1 || ^8.11.0 || ^9.0.2",
@@ -10485,7 +10526,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/larastan/larastan/issues", "issues": "https://github.com/larastan/larastan/issues",
"source": "https://github.com/larastan/larastan/tree/v2.9.14" "source": "https://github.com/larastan/larastan/tree/v2.10.0"
}, },
"funding": [ "funding": [
{ {
@@ -10493,7 +10534,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2025-02-06T21:03:14+00:00" "time": "2025-03-14T21:52:58+00:00"
}, },
{ {
"name": "laravel-lang/actions", "name": "laravel-lang/actions",
@@ -10564,16 +10605,16 @@
}, },
{ {
"name": "laravel-lang/attributes", "name": "laravel-lang/attributes",
"version": "2.13.3", "version": "2.13.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Laravel-Lang/attributes.git", "url": "https://github.com/Laravel-Lang/attributes.git",
"reference": "80927aa4433d9950f891b8bb72a239e421a43c7c" "reference": "c3671787b92fb83da1f5a4f9b6dcc9f4e3edfafe"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Laravel-Lang/attributes/zipball/80927aa4433d9950f891b8bb72a239e421a43c7c", "url": "https://api.github.com/repos/Laravel-Lang/attributes/zipball/c3671787b92fb83da1f5a4f9b6dcc9f4e3edfafe",
"reference": "80927aa4433d9950f891b8bb72a239e421a43c7c", "reference": "c3671787b92fb83da1f5a4f9b6dcc9f4e3edfafe",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -10627,9 +10668,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/Laravel-Lang/attributes/issues", "issues": "https://github.com/Laravel-Lang/attributes/issues",
"source": "https://github.com/Laravel-Lang/attributes/tree/2.13.3" "source": "https://github.com/Laravel-Lang/attributes/tree/2.13.4"
}, },
"time": "2025-03-10T12:59:26+00:00" "time": "2025-03-14T10:43:34+00:00"
}, },
{ {
"name": "laravel-lang/common", "name": "laravel-lang/common",
@@ -11423,40 +11464,40 @@
}, },
{ {
"name": "nunomaduro/collision", "name": "nunomaduro/collision",
"version": "v7.11.0", "version": "v7.12.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/nunomaduro/collision.git", "url": "https://github.com/nunomaduro/collision.git",
"reference": "994ea93df5d4132f69d3f1bd74730509df6e8a05" "reference": "995245421d3d7593a6960822063bdba4f5d7cf1a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/nunomaduro/collision/zipball/994ea93df5d4132f69d3f1bd74730509df6e8a05", "url": "https://api.github.com/repos/nunomaduro/collision/zipball/995245421d3d7593a6960822063bdba4f5d7cf1a",
"reference": "994ea93df5d4132f69d3f1bd74730509df6e8a05", "reference": "995245421d3d7593a6960822063bdba4f5d7cf1a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"filp/whoops": "^2.16.0", "filp/whoops": "^2.17.0",
"nunomaduro/termwind": "^1.15.1", "nunomaduro/termwind": "^1.17.0",
"php": "^8.1.0", "php": "^8.1.0",
"symfony/console": "^6.4.12" "symfony/console": "^6.4.17"
}, },
"conflict": { "conflict": {
"laravel/framework": ">=11.0.0" "laravel/framework": ">=11.0.0"
}, },
"require-dev": { "require-dev": {
"brianium/paratest": "^7.3.1", "brianium/paratest": "^7.4.8",
"laravel/framework": "^10.48.22", "laravel/framework": "^10.48.29",
"laravel/pint": "^1.18.1", "laravel/pint": "^1.21.2",
"laravel/sail": "^1.36.0", "laravel/sail": "^1.41.0",
"laravel/sanctum": "^3.3.3", "laravel/sanctum": "^3.3.3",
"laravel/tinker": "^2.10.0", "laravel/tinker": "^2.10.1",
"nunomaduro/larastan": "^2.9.8", "nunomaduro/larastan": "^2.10.0",
"orchestra/testbench-core": "^8.28.3", "orchestra/testbench-core": "^8.35.0",
"pestphp/pest": "^2.35.1", "pestphp/pest": "^2.36.0",
"phpunit/phpunit": "^10.5.36", "phpunit/phpunit": "^10.5.36",
"sebastian/environment": "^6.1.0", "sebastian/environment": "^6.1.0",
"spatie/laravel-ignition": "^2.8.0" "spatie/laravel-ignition": "^2.9.1"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
@@ -11515,7 +11556,7 @@
"type": "patreon" "type": "patreon"
} }
], ],
"time": "2024-10-15T15:12:40+00:00" "time": "2025-03-14T22:35:49+00:00"
}, },
{ {
"name": "phar-io/manifest", "name": "phar-io/manifest",
@@ -11635,107 +11676,18 @@
}, },
"time": "2022-02-21T01:04:05+00:00" "time": "2022-02-21T01:04:05+00:00"
}, },
{
"name": "phpmyadmin/sql-parser",
"version": "5.11.0",
"source": {
"type": "git",
"url": "https://github.com/phpmyadmin/sql-parser.git",
"reference": "07044bc8c13abd542756c3fd34dc66a5d6dee8e4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpmyadmin/sql-parser/zipball/07044bc8c13abd542756c3fd34dc66a5d6dee8e4",
"reference": "07044bc8c13abd542756c3fd34dc66a5d6dee8e4",
"shasum": ""
},
"require": {
"php": "^7.2 || ^8.0",
"symfony/polyfill-mbstring": "^1.3",
"symfony/polyfill-php80": "^1.16"
},
"conflict": {
"phpmyadmin/motranslator": "<3.0"
},
"require-dev": {
"phpbench/phpbench": "^1.1",
"phpmyadmin/coding-standard": "^3.0",
"phpmyadmin/motranslator": "^4.0 || ^5.0",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-deprecation-rules": "^1.2",
"phpstan/phpstan-phpunit": "^1.4",
"phpstan/phpstan-strict-rules": "^1.6",
"phpunit/phpunit": "^8.5 || ^9.6",
"psalm/plugin-phpunit": "^0.16.1",
"vimeo/psalm": "^4.11",
"zumba/json-serializer": "~3.0.2"
},
"suggest": {
"ext-mbstring": "For best performance",
"phpmyadmin/motranslator": "Translate messages to your favorite locale"
},
"bin": [
"bin/highlight-query",
"bin/lint-query",
"bin/sql-parser",
"bin/tokenize-query"
],
"type": "library",
"autoload": {
"psr-4": {
"PhpMyAdmin\\SqlParser\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "The phpMyAdmin Team",
"email": "developers@phpmyadmin.net",
"homepage": "https://www.phpmyadmin.net/team/"
}
],
"description": "A validating SQL lexer and parser with a focus on MySQL dialect.",
"homepage": "https://github.com/phpmyadmin/sql-parser",
"keywords": [
"analysis",
"lexer",
"parser",
"query linter",
"sql",
"sql lexer",
"sql linter",
"sql parser",
"sql syntax highlighter",
"sql tokenizer"
],
"support": {
"issues": "https://github.com/phpmyadmin/sql-parser/issues",
"source": "https://github.com/phpmyadmin/sql-parser"
},
"funding": [
{
"url": "https://www.phpmyadmin.net/donate/",
"type": "other"
}
],
"time": "2025-02-22T20:00:59+00:00"
},
{ {
"name": "phpstan/phpstan", "name": "phpstan/phpstan",
"version": "1.12.21", "version": "1.12.23",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan.git", "url": "https://github.com/phpstan/phpstan.git",
"reference": "14276fdef70575106a3392a4ed553c06a984df28" "reference": "29201e7a743a6ab36f91394eab51889a82631428"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/14276fdef70575106a3392a4ed553c06a984df28", "url": "https://api.github.com/repos/phpstan/phpstan/zipball/29201e7a743a6ab36f91394eab51889a82631428",
"reference": "14276fdef70575106a3392a4ed553c06a984df28", "reference": "29201e7a743a6ab36f91394eab51889a82631428",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -11780,7 +11732,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2025-03-09T09:24:50+00:00" "time": "2025-03-23T14:57:32+00:00"
}, },
{ {
"name": "phpunit/php-code-coverage", "name": "phpunit/php-code-coverage",

View File

@@ -5,7 +5,7 @@
<style> <style>
.loan-history-container { .loan-history-container {
display: grid; display: grid;
grid-template-columns: 15% 1fr; grid-template-columns: 20% 1fr;
} }
@media (max-width: 500px) { @media (max-width: 500px) {

View File

@@ -11,6 +11,7 @@ use App\Modules\ApiAuth\Controllers\ApiAuthController;
use App\Modules\BaseAppEnum\Controllers\BaseAppEnumController; use App\Modules\BaseAppEnum\Controllers\BaseAppEnumController;
use App\Modules\Branch\Controllers\BranchController; use App\Modules\Branch\Controllers\BranchController;
use App\Modules\LoanOrder\Controllers\LoanOrderController; use App\Modules\LoanOrder\Controllers\LoanOrderController;
use App\Modules\LoanRemainingOrder\Controllers\LoanRemainingOrderController;
use App\Modules\Province\Controllers\ProvinceController; use App\Modules\Province\Controllers\ProvinceController;
use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Route;
use Laravel\Nova\Http\Middleware\Authenticate; use Laravel\Nova\Http\Middleware\Authenticate;
@@ -69,6 +70,9 @@ Route::middleware(['auth:sanctum', 'not_banned'])->group(function () {
Route::post('loan-order/{loanOrder}', [LoanOrderController::class, 'update']); Route::post('loan-order/{loanOrder}', [LoanOrderController::class, 'update']);
Route::delete('loan-order/{loanOrder}', [LoanOrderController::class, 'destroy']); Route::delete('loan-order/{loanOrder}', [LoanOrderController::class, 'destroy']);
// Loan remaning...
Route::get('loan-remaining', [LoanRemainingOrderController::class, 'index']);
// Alerts... // Alerts...
Route::get('alerts', [AlertController::class, 'index']); Route::get('alerts', [AlertController::class, 'index']);
}); });