debug the reports
This commit is contained in:
@@ -31,7 +31,13 @@ class ReportTradodController extends Controller
|
||||
{
|
||||
return $this->successResponse([
|
||||
'activities' =>$reportMissionService->provinceActivity($request),
|
||||
'city' => City::query()->where('province_id', $request->province_id)->get(['id', 'name_fa']),
|
||||
'city' => City::query()
|
||||
->where('province_id', $request->province_id)
|
||||
->where(function ($query) {
|
||||
$query->where('type_id', 1)
|
||||
->orWhereIn('name_fa', ['اداره ماشينآلات', 'اداره نقلیه']);
|
||||
})
|
||||
->get(['id', 'name_fa'])
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,13 @@ class ReportViolationController extends Controller
|
||||
{
|
||||
return $this->successResponse([
|
||||
'activities' =>$reportService->provinceActivity($request),
|
||||
'city' => City::query()->where('province_id', $request->province_id)->get(['id', 'name_fa']),
|
||||
'city' => City::query()
|
||||
->where('province_id', $request->province_id)
|
||||
->where(function ($query) {
|
||||
$query->where('type_id', 1)
|
||||
->orWhereIn('name_fa', ['اداره ماشينآلات', 'اداره نقلیه']);
|
||||
})
|
||||
->get(['id', 'name_fa'])
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user