convert many to many to one to many

This commit is contained in:
2025-11-15 10:34:56 +03:30
parent e463096adb
commit eaccd76019
10 changed files with 104 additions and 33 deletions

View File

@@ -13,7 +13,7 @@ class TransportationUnitService
public function dataTable(Request $request)
{
$query = Mission::query()
->where('state_id', '=', MissionStates::REQUEST_CREATED->value)
->whereIn('state_id', [MissionStates::REQUEST_CREATED->value, MissionStates::PENDING_CONFIRMATION->value])
->where('edare_shahri_id', '=', Auth::user()->edarate_shahri_id);
return DataTableFacade::run(