chore: update document approval workflow and bug fixes

This commit is contained in:
2026-05-25 13:05:20 +08:00
parent d573c02893
commit 39a8e1d4cd
910 changed files with 49994 additions and 1010 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace Modules\ProjectManagement\Database\Seeders;
use App\Models\User;
use Illuminate\Database\Seeder;
use Modules\ProjectManagement\Models\Project;
class ProjectManagementDatabaseSeeder extends Seeder
{
public function run(): void
{
// Create a sample project
$project = Project::create([
'name' => 'GSB Tower Construction',
'code' => 'PRJ-2026-001',
'description' => 'Main tower construction project for GSB headquarters.',
'location' => 'Manila, Philippines',
'status' => 'planning',
'contract_value' => 50000000.00,
'start_date' => '2026-04-01',
'target_end_date' => '2027-12-31',
]);
// Assign admin as PM
$admin = User::where('email', 'admin@gsb-cons.com')->first();
if ($admin) {
$project->personnel()->attach($admin->id, ['role' => 'pm']);
}
}
}