fix list and crate update machine and change state for mission

This commit is contained in:
2026-06-09 14:50:13 +03:30
parent e0edcf6db2
commit 5004b99d03
9 changed files with 117 additions and 28 deletions

View File

@@ -63,19 +63,19 @@ class ViolationManagementController extends Controller
'zone_fa' => MissionZones::name($zone),
'type' => $type,
'type_fa' => MissionTypes::name($type),
'start_date' => $request->start_date,//
'end_date' => $request->end_date,//
'start_date' => $request->start_date,
'end_date' => $request->end_date,
'end_point' => $request->end_point,
'category_id' => $request->category_id,
'category_name' => MissionCategory::name($request->category_id),
'start_time' => $request->start_date,//
'finish_time' => $request->end_date,//
'start_time' => $request->start_date,
'finish_time' => $request->end_date,
'state_id' => $state,
'state_name' => MissionStates::name($state),
'explanation' => $request->explanation,
'request_date' => now(),
'machine_id' => $machine->id,//
'machine_code' => $machine->machine_code,//
'machine_id' => $machine->id,
'machine_code' => $machine->machine_code,
'station_id' => $user->station_id,
'station_name' => RahdariPoint::query()->find( $user->station_id)->name,
'km' => $violation->km ?? null,