Add gold credit feature gated by SuperAdmin enable_gold_credit.

Port tables, APIs, and overdue cron from goldali, default the flag off, and keep customer routes behind auth.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-30 00:17:01 +03:30
co-authored by Cursor
parent a8be3d499b
commit 050bd26318
18 changed files with 1670 additions and 5 deletions
+7
View File
@@ -1,6 +1,7 @@
<?php
use App\Http\Controllers\Customer\CustomerController;
use App\Http\Controllers\Customer\GoldCreditController;
use App\Http\Controllers\Customer\OrderController;
use App\Http\Controllers\Customer\AddressController;
use App\Http\Controllers\Customer\WalletController;
@@ -158,6 +159,11 @@ Route::middleware(['auth:customer', 'customer.active'])->group(function () use (
//offer code
Route::post('offer_code/check_code', [OfferCodesController::class, 'check_code']);
//--------------------gold credit
Route::get('gold_credit', [GoldCreditController::class, 'show']);
Route::post('gold_credit/request', [GoldCreditController::class, 'requestLoan']);
Route::post('gold_credit/installments/pay', [GoldCreditController::class, 'payInstallments']);
if ($isStore) {
Route::post('vc_validate', [havaleController::class, 'virtualCardValidate']);
Route::post('havale', [havaleController::class, 'havale']);
@@ -168,3 +174,4 @@ Route::middleware(['auth:customer', 'customer.active'])->group(function () use (
});
});