feat: implement core material requisition, project management, and daily reporting modules with workflow validation and automated documentation support.
Some checks failed
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
Tests / PHP 8.5 (push) Has been cancelled

This commit is contained in:
2026-08-01 15:38:57 +08:00
parent 4fc58bb979
commit 42ba980f7a
36 changed files with 1588 additions and 150 deletions

View File

@@ -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')) {