mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
add company active wallet web
This commit is contained in:
@@ -42,6 +42,7 @@ use Illuminate\Http\Request;
|
|||||||
use Illuminate\Support\Facades\Crypt;
|
use Illuminate\Support\Facades\Crypt;
|
||||||
use App\Models\Container;
|
use App\Models\Container;
|
||||||
use App\Models\Transaction;
|
use App\Models\Transaction;
|
||||||
|
use App\Models\Wallet;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\Facades\Http;
|
use Illuminate\Support\Facades\Http;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
@@ -1209,3 +1210,16 @@ Route::get('/check-successful-payment-or-topup', function () {
|
|||||||
dump("Sum is : " . $sum);
|
dump("Sum is : " . $sum);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Route::get('/wallets/active', function(){
|
||||||
|
$wallets = Wallet::all();
|
||||||
|
|
||||||
|
echo '<table>';
|
||||||
|
foreach ($wallets as $wallet){
|
||||||
|
$companyMarking = $wallet->owner->getMarking();
|
||||||
|
echo '<tr>';
|
||||||
|
echo '<td><a href="'.route('wallet.details', $companyMarking).'" target="_blank">'.$companyMarking.'</a></td>';
|
||||||
|
echo '<td>'.$wallet->amount.'</td>';
|
||||||
|
echo '</tr>';
|
||||||
|
}
|
||||||
|
echo '</table>';
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user