From 9a0073e906ec9feb15346bb77c8e2a1107eb0653 Mon Sep 17 00:00:00 2001 From: edmondlang Date: Thu, 12 Oct 2023 12:43:35 +0800 Subject: [PATCH] add company active wallet web --- routes/web.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/routes/web.php b/routes/web.php index a5e89df4..79e37341 100644 --- a/routes/web.php +++ b/routes/web.php @@ -42,6 +42,7 @@ use Illuminate\Http\Request; use Illuminate\Support\Facades\Crypt; use App\Models\Container; use App\Models\Transaction; +use App\Models\Wallet; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Route; @@ -1209,3 +1210,16 @@ Route::get('/check-successful-payment-or-topup', function () { dump("Sum is : " . $sum); }); +Route::get('/wallets/active', function(){ + $wallets = Wallet::all(); + + echo ''; + foreach ($wallets as $wallet){ + $companyMarking = $wallet->owner->getMarking(); + echo ''; + echo ''; + echo ''; + echo ''; + } + echo '
'.$companyMarking.''.$wallet->amount.'
'; +}); \ No newline at end of file