some edits for pargar

This commit is contained in:
2026-07-27 16:05:54 +03:30
parent d4fba50845
commit 7d302ecc93
3 changed files with 16 additions and 10 deletions
@@ -691,7 +691,7 @@ class WalletController extends Controller
public function indexWithdraw(Request $request)
{
$records = Withdraw::with(['customer', 'bank_account', 'Address', "Transaction"]);
$records = Withdraw::with(['customer', 'bank_account', 'address', "Transaction"]);
Withdraw::applyFlowFilter($records, $request->input('flow_type', 'all'));
TableEngine::create($records, $request->all())
->initSearch(['customer.name'])
@@ -874,7 +874,7 @@ class WalletController extends Controller
public function getWithdraw(Request $request, $id)
{
$withdraw = Withdraw::with(['customer', 'bank_account', 'Address', "Transaction"])->find($id);
$withdraw = Withdraw::with(['customer', 'bank_account', 'address', "Transaction"])->find($id);
if (!$withdraw) {
return response()->json(['error' => 'Withdraw not found'], 404);
}
@@ -883,7 +883,7 @@ class WalletController extends Controller
public function indexPhysicalWithdraw(Request $request)
{
$records = Withdraw::with(['customer', 'Address', 'Transaction.product']);
$records = Withdraw::with(['customer', 'address', 'Transaction.product']);
Withdraw::scopePhysicalWithdrawals($records);
TableEngine::create($records, $request->all())