user(); return Inertia::render('admin/manage/stocks/Index', [ 'pendingCuttings' => $this->stockService->getPendingVerificationCuttings($user), 'pendingApprovalCuttings' => $this->stockService->getPendingApprovalCuttings($user), ]); } public function verify(StockVerifyRequest $request, Cutting $cutting): RedirectResponse { $this->stockService->submitVerification( $cutting, $request->user(), $request->validated('verification_note'), $request->validated('results'), $request->validated('result_prices'), ); if ($request->user()->can(Permission::OWNER_VERIFICATIONS_VERIFY->value)) { $this->flashSuccess('Verifikasi berhasil disimpan. Stok produk telah ditambahkan ke toko.'); } else { $this->flashSuccess('Verifikasi berhasil diajukan. Menunggu persetujuan owner.'); } return redirect()->route('admin.manage.stocks.index'); } }