Files
GSB-Construction/Modules/ProjectQualityControl/app/Http/Controllers/ProjectQualityControlController.php
Christopher Boyles 64d4b331a8
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
Additional Changes
2026-06-02 22:04:03 +08:00

73 lines
1.7 KiB
PHP

<?php
namespace Modules\ProjectQualityControl\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class ProjectQualityControlController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index(Request $request)
{
$projectUlid = $request->query('project');
$project = $projectUlid ? \Modules\ProjectManagement\Models\Project::where('ulid', $projectUlid)->firstOrFail() : null;
return \Inertia\Inertia::render('ProjectManagement::Projects/Modules/QualityControl', [
'project' => $project,
'projects' => \Modules\ProjectManagement\Models\Project::with('parentProject:id,ulid,name,code')->get(['id', 'ulid', 'name', 'code', 'project_type', 'parent_project_id']),
'currentTab' => 'qc',
]);
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
return view('projectqualitycontrol::create');
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Show the specified resource.
*/
public function show($id)
{
return view('projectqualitycontrol::show');
}
/**
* Show the form for editing the specified resource.
*/
public function edit($id)
{
return view('projectqualitycontrol::edit');
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $id)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy($id)
{
//
}
}