feat: implement core material requisition, project management, and daily reporting modules with workflow validation and automated documentation support.
This commit is contained in:
@@ -34,16 +34,16 @@ class ProjectController extends Controller
|
||||
$query = Project::query()
|
||||
->where('current_wizard_step', '>=', 7)
|
||||
->whereNotIn('status', ['completed', 'closed'])
|
||||
->with(['personnel:id,name']);
|
||||
->with(['contractor:id,company_name', 'personnel:id,name']);
|
||||
|
||||
$historyQuery = Project::query()
|
||||
->where('current_wizard_step', '>=', 7)
|
||||
->whereIn('status', ['completed', 'closed'])
|
||||
->with(['personnel:id,name']);
|
||||
->with(['contractor:id,company_name', 'personnel:id,name']);
|
||||
|
||||
$draftsQuery = Project::query()
|
||||
->where('current_wizard_step', '<', 7)
|
||||
->with(['personnel:id,name']);
|
||||
->with(['contractor:id,company_name', 'personnel:id,name']);
|
||||
|
||||
// Non-platform admins only see projects they are assigned to
|
||||
if ($user && !$user->hasRole('Super Admin')) {
|
||||
|
||||
Reference in New Issue
Block a user