harim final web service

This commit is contained in:
2025-09-07 14:25:31 +03:30
parent 4594415cec
commit 6115101b37
3 changed files with 40 additions and 3 deletions

View File

@@ -79,4 +79,20 @@ class PanjareVahedController extends Controller
return $this->successResponse();
}
public function getFinalPolygons(GetAccessRoadRequest $request)
{
$state = HarimStates::TAEDE_ARSE_VA_AYAN_ERSAL_SHODE_TAVASOT_DAFTAR_KARBAR->value;
Harim::query()
->firstWhere('panjare_vahed_id', '=', $request->panjare_vahed_id)
->update([
'state_id' => $state,
'state_name' => HarimStates::name($state),
'final_area' => $request->final_area,
'final_plan' => $request->final_plan,
]);
return $this->successResponse();
}
}