added zarbox list

This commit is contained in:
2026-06-09 19:58:48 +03:30
parent b5c2b2be72
commit ae9ba34ca8
3 changed files with 41 additions and 0 deletions
@@ -59,6 +59,18 @@ class PriceController extends Controller
]);
}
public function zaarboxProducts(ZaarboxPriceService $zaarboxPriceService)
{
return response()->json([
'code' => 0,
'message' => 'عملیات با موفقیت انجام شد.',
'data' => [
'items' => $zaarboxPriceService->listProductOptions(),
'api_url' => $zaarboxPriceService->apiUrl(),
],
]);
}
public function table(Request $request){
$records = Price::with(['user']);
TableEngine::create($records, $request->all())