fix product show

This commit is contained in:
2026-07-01 14:15:21 +03:30
parent aeeb3bd3ed
commit 6aaadf5825
2 changed files with 2 additions and 1 deletions
@@ -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([
@@ -70,6 +70,7 @@ class Transaction extends Model
'amount',
'trade_by_quantity',
'metal_id',
'file_id',
]);
}
public function order()