create job for road observed problems

This commit is contained in:
2025-02-16 15:32:17 +03:30
parent 8e2857f3c2
commit 7accc9b389
8 changed files with 298 additions and 2 deletions

View File

@@ -155,8 +155,13 @@ class RoadPatrolProjectController extends Controller
$item_end_coordinates = null;
if ($item['instant_action'] == 0) {
$priority = [
1 => 'عادی',
2 => 'فوری',
3 => 'آنی',
];
$observed_item->priority = $item['priority'];
$observed_item->priority_fa = $item['priority_fa'];
$observed_item->priority_fa = $priority[$item['priority']];
$observed_item->save();
} elseif ($item['instant_action'] == 1) {
if ($info_item->needs_end_point) {