diff --git a/app/Http/Controllers/Customer/WalletController.php b/app/Http/Controllers/Customer/WalletController.php index 0e1fcad..34d77f9 100644 --- a/app/Http/Controllers/Customer/WalletController.php +++ b/app/Http/Controllers/Customer/WalletController.php @@ -384,7 +384,7 @@ class WalletController extends Controller return response()->json($records); } public function index_withdraw_physical(Request $request){ - $records = Withdraw::with(['customer','bank_account','Address',"Transaction.product"])->where("customer_id",auth('customer')->id())->whereBetween('sts', [49, 70]); + $records = Withdraw::with(['customer','bank_account','Address',"Transaction.product.file"])->where("customer_id",auth('customer')->id())->whereBetween('sts', [49, 70]); TableEngine::create($records, $request->all()) ->initSearch(['customer.name']) ->select([ diff --git a/packages/rooyesh/wallet/src/models/Transaction.php b/packages/rooyesh/wallet/src/models/Transaction.php index 8280b68..977bb2e 100644 --- a/packages/rooyesh/wallet/src/models/Transaction.php +++ b/packages/rooyesh/wallet/src/models/Transaction.php @@ -70,6 +70,7 @@ class Transaction extends Model 'amount', 'trade_by_quantity', 'metal_id', + 'file_id', ]); } public function order()