map reports

This commit is contained in:
2025-02-08 15:39:15 +03:30
parent e570902f31
commit 18cbf77261
3 changed files with 36 additions and 25 deletions

View File

@@ -89,4 +89,9 @@ class RoadPatrolReportController extends Controller
return $this->successResponse($data);
}
public function showOnMap(RoadPatrol $road_patrol)
{
return $this->successResponse($road_patrol->load(['rahdaran:id,name,code', 'cmmsMachines:id,machine_code,car_name,plak_number']));
}
}