+ Add
This commit is contained in:
parent
6413707377
commit
5cea0ca950
|
@ -74,9 +74,9 @@ class WalletController extends Controller
|
||||||
public function show($id_wallet)
|
public function show($id_wallet)
|
||||||
{
|
{
|
||||||
// $wallet = Wallet::findOrFail($id_wallet);
|
// $wallet = Wallet::findOrFail($id_wallet);
|
||||||
$wallet = collect(DB::select('SELECT wa.wallet_id AS id, wa.balance_princ, wa.balance_com, wa.created_date, wa.network , cw.taux_com_client_depot, c.name AS country
|
$wallet = collect(DB::select('SELECT wa.wallet_id AS id, wa.balance_princ, wa.balance_com, wa.created_date, wa.network , cw.taux_com_client_depot, c.name AS country,
|
||||||
FROM wallet_agent wa INNER JOIN configWallet cw ON wa.network_id = cw.id_network INNER JOIN networks n ON n.id = wa.network_id
|
c.currency_code FROM wallet_agent wa INNER JOIN configWallet cw ON wa.network_id = cw.id_network INNER JOIN networks n ON n.id = wa.network_id
|
||||||
INNER JOIN countries c ON c.id = n.country_id
|
INNER JOIN countries_currencies c ON c.id = n.country_id
|
||||||
WHERE wa.wallet_id = :id',['id' => $id_wallet]))->first();
|
WHERE wa.wallet_id = :id',['id' => $id_wallet]))->first();
|
||||||
if($wallet)
|
if($wallet)
|
||||||
return $this->successResponse($wallet);
|
return $this->successResponse($wallet);
|
||||||
|
|
Loading…
Reference in New Issue