diff --git a/config/refresh-sitemap.php b/config/refresh-sitemap.php
index 9160382..f520b16 100644
--- a/config/refresh-sitemap.php
+++ b/config/refresh-sitemap.php
@@ -20,6 +20,7 @@ return [
* * Note that this can take route names or route urls (both partially)
*/
'ignoreRoutes' => [
+ 'commands.',
'cashier.',
'bo.',
'login.',
diff --git a/resources/views/layouts/header.blade.php b/resources/views/layouts/header.blade.php
index 405557c..15d251f 100644
--- a/resources/views/layouts/header.blade.php
+++ b/resources/views/layouts/header.blade.php
@@ -39,6 +39,11 @@
@auth('backend')
+ -
+
+ {{ __('DEBUG: Màj Systempay') }}
+
+
-
{{
auth('backend')->user()->role->label
diff --git a/routes/web-bo.php b/routes/web-bo.php
index db22319..d614a23 100644
--- a/routes/web-bo.php
+++ b/routes/web-bo.php
@@ -16,6 +16,7 @@ use App\Http\Controllers\Bo\StaticPageController;
use App\Http\Controllers\Bo\TagController;
use App\Http\Controllers\Bo\RangeController;
use App\Http\Controllers\Bo\XmlIncoController;
+use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Auth;
Route::prefix('bo')->name('bo.')->group(function () {
@@ -36,6 +37,15 @@ Route::prefix('bo')->name('bo.')->group(function () {
Route::middleware('auth:backend')->group(function () {
Route::get('/', [DashboardController::class, 'index'])->name('dashboard');
+ Route::get('/commands/systempay/update_credit_transactions', function () {
+ if (!config('app.debug')) {
+ abort(400);
+ }
+ Artisan::call('systempay:update_credit_transactions');
+ session()->flash('info', trans('La commande à été lancée'));
+ return back();
+ })->name('commands.systempay.update_credit_transactions');
+
// * RESOURCES
// * StaticPages
Route::resource('static_pages', StaticPageController::class)