This commit is contained in:
2024-10-12 15:16:21 +05:00
parent 33fa80372d
commit 306f41496e
3 changed files with 4 additions and 5 deletions

View File

@@ -20,8 +20,8 @@ class MetricsController extends Controller
return response()->json([
'loanOrders' => $loanOrders->count(),
'acceptedLoanOrders' => $loanOrders->where('status', OrderRepo::COMPLETED),
'deniedLoanOrders' => $loanOrders->where('status', OrderRepo::CANCELLED),
'acceptedLoanOrders' => $loanOrders->where('status', OrderRepo::COMPLETED)->count(),
'deniedLoanOrders' => $loanOrders->where('status', OrderRepo::CANCELLED)->count(),
]);
}
}

View File

@@ -21,6 +21,7 @@ use Illuminate\Support\Facades\Route;
|
*/
// Fetch card history...
Route::post('fetch-card-history', [FetchCardHistoryController::class, 'index']);
// Auth...

View File

@@ -37,8 +37,6 @@ Route::middleware(['auth', 'unVerified'])->group(function () {
});
Route::get('online-payment-store', [OnlinePaymentController::class, 'store'])->name('online-payment-store');
Route::get('online-payment-store-visa-master', [
OnlinePaymentController::class, 'visaMaster',
])->name('online-payment-store-visa-master');
Route::get('online-payment-store-visa-master', [OnlinePaymentController::class, 'visaMaster'])->name('online-payment-store-visa-master');
Route::redirect('/', config('nova.path'));