|
|
|
@ -9,13 +9,17 @@ use App\Models\Image;
|
|
|
|
|
use App\Models\Holiday; |
|
|
|
|
use App\Models\Project; |
|
|
|
|
use App\Models\Activity; |
|
|
|
|
use App\Models\ReportK3; |
|
|
|
|
use App\Jobs\ProcessSCurve; |
|
|
|
|
use App\Models\AssignTools; |
|
|
|
|
use App\Models\OfficeHours; |
|
|
|
|
use App\Models\ProjectType; |
|
|
|
|
use App\Models\ProjectPhase; |
|
|
|
|
use App\Models\ProjectRisks; |
|
|
|
|
use App\Models\UserToProyek; |
|
|
|
|
use App\Models\VersionGantt; |
|
|
|
|
use Illuminate\Http\Request; |
|
|
|
|
use App\Models\HierarchyFtth; |
|
|
|
|
use App\Models\ProjectIssues; |
|
|
|
|
use App\Models\AssignMaterial; |
|
|
|
|
use App\Models\DokumenProject; |
|
|
|
@ -26,13 +30,14 @@ use App\Models\UserToActivity;
|
|
|
|
|
use App\Models\ActivityDokumen; |
|
|
|
|
use App\Models\CommentActivity; |
|
|
|
|
use App\Models\ProjectApproval; |
|
|
|
|
use App\Models\RequestMaterial; |
|
|
|
|
use App\Models\ProjectMileStone; |
|
|
|
|
use App\Models\ProjectChecklists; |
|
|
|
|
use Illuminate\Support\Facades\DB; |
|
|
|
|
use App\Models\ProjectParticipants; |
|
|
|
|
use App\Models\FolderDocumentProyek; |
|
|
|
|
use App\Models\ProjectToChecklistK3; |
|
|
|
|
use App\Helpers\MasterFunctionsHelper; |
|
|
|
|
use App\Models\ProjectRisks; |
|
|
|
|
use App\Models\ReportActivityMaterial; |
|
|
|
|
use Illuminate\Support\Facades\Artisan; |
|
|
|
|
|
|
|
|
@ -163,6 +168,12 @@ class ProjectController extends Controller
|
|
|
|
|
ProjectChecklists::where('proyek_id', $project_id)->delete(); |
|
|
|
|
ProjectIssues::where('proyek_id', $project_id)->delete(); |
|
|
|
|
ProjectRisks::where('proyek_id', $project_id)->delete(); |
|
|
|
|
ProjectToChecklistK3::where('proyek_id', $project_id)->delete(); |
|
|
|
|
HierarchyFtth::where('project_id', $project_id)->delete(); |
|
|
|
|
AssignTools::where('proyek_id', $project_id)->delete(); |
|
|
|
|
OfficeHours::where('proyek_id', $project_id)->delete(); |
|
|
|
|
ReportK3::where('proyek_id', $project_id)->delete(); |
|
|
|
|
RequestMaterial::where('proyek_id', $project_id)->delete(); |
|
|
|
|
$this->deleteVersionGantt($project_id); |
|
|
|
|
$this->deleteDokumenProject($project_id); |
|
|
|
|
} |
|
|
|
|