fix: enviroments
This commit is contained in:
parent
1c259fe12e
commit
7e47fdf52f
@ -23,7 +23,8 @@ class ProjectController extends Controller
|
|||||||
if (!$project) {
|
if (!$project) {
|
||||||
return redirect()->route('home');
|
return redirect()->route('home');
|
||||||
}
|
}
|
||||||
return view('project.resources', ['project' => $project]);
|
$environment = $project->environments->where('name', request()->route('environment_name'))->first();
|
||||||
|
return view('project.resources', ['project' => $project, 'environment' => $environment]);
|
||||||
}
|
}
|
||||||
public function application()
|
public function application()
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<x-layout>
|
<x-layout>
|
||||||
<h1>Resources</h1>
|
<h1>Resources</h1>
|
||||||
|
|
||||||
@foreach ($project->environments as $environment)
|
|
||||||
<div>
|
<div>
|
||||||
@foreach ($environment->applications as $application)
|
@foreach ($environment->applications as $application)
|
||||||
<p>
|
<p>
|
||||||
@ -25,5 +23,4 @@
|
|||||||
</p>
|
</p>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
|
||||||
</x-layout>
|
</x-layout>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user