some edits for pargar
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user