public function show($projectId, $faultImprovementId)
 {
     $project = \App\Entities\Project::findOrFail($projectId);
     $faultImprovement = \App\Entities\FaultImprovement::findOrFail($faultImprovementId);
     $checklist = $faultImprovement->checkitem->checklist;
     return view('fault-improvements.show', compact('project', 'faultImprovement', 'checklist'));
 }
Пример #2
0
 public function works($projectId, Request $request)
 {
     $mainflowTypeId = $request->query('mainflow_type_id');
     $detailingflowTypeId = $request->query('detailingflow_type_id');
     $project = \App\Entities\Project::findOrFail($projectId);
     $query = \App\Entities\ProjectWork::query();
     if (!empty($mainflowTypeId)) {
         $query->whereHas('detailingflowType', function ($query) use($mainflowTypeId) {
             $query->whereMainflowTypeId($mainflowTypeId);
         });
         $mainflowTypeName = \App\Entities\MainflowType::findOrFail($mainflowTypeId)->name;
     }
     if (!empty($detailingflowTypeId)) {
         $query->whereDetailingflowTypeId($detailingflowTypeId);
         $detailingflowTypeName = \App\Entities\DetailingflowType::findOrFail($detailingflowTypeId)->name;
     }
     $works = $query->get();
     return view('bids.works', compact('project', 'works', 'mainflowTypeName', 'detailingflowTypeName'));
 }
 public function show($projectId, $date)
 {
     $project = \App\Entities\Project::findOrFail($projectId);
     return view('project-constructiondailies.show', compact('project', 'date'));
 }
 public function show($projectId, $workId)
 {
     $project = \App\Entities\Project::findOrFail($projectId);
     $work = \App\Entities\ProjectWork::findOrFail($workId);
     return view('project-works.show')->withProject($project)->withWork($work);
 }
 public function finance($id)
 {
     $project = Project::findOrFail($id);
     return view('projects.finance')->withProject($project);
 }