fix: enviroments
This commit is contained in:
parent
1c259fe12e
commit
7e47fdf52f
@ -23,7 +23,8 @@ public function resources()
|
||||
if (!$project) {
|
||||
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()
|
||||
{
|
||||
|
@ -1,29 +1,26 @@
|
||||
<x-layout>
|
||||
<h1>Resources</h1>
|
||||
|
||||
@foreach ($project->environments as $environment)
|
||||
<div>
|
||||
@foreach ($environment->applications as $application)
|
||||
<div>
|
||||
@foreach ($environment->applications as $application)
|
||||
<p>
|
||||
<a href="{{ route('project.application', [$project->uuid, $environment->name, $application->uuid]) }}">
|
||||
{{ $application->name }}
|
||||
</a>
|
||||
</p>
|
||||
@endforeach
|
||||
@foreach ($environment->databases as $database)
|
||||
@endforeach
|
||||
@foreach ($environment->databases as $database)
|
||||
<p>
|
||||
<a href="{{ route('project.database', [$project->uuid, $environment->name, $database->uuid]) }}">
|
||||
{{ $database->name }}
|
||||
</a>
|
||||
</p>
|
||||
@endforeach
|
||||
@foreach ($environment->services as $service)
|
||||
@endforeach
|
||||
@foreach ($environment->services as $service)
|
||||
<p>
|
||||
<a href="{{ route('project.service', [$project->uuid, $environment->name, $service->uuid]) }}">
|
||||
{{ $service->name }}
|
||||
</a>
|
||||
</p>
|
||||
@endforeach
|
||||
</div>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</div>
|
||||
</x-layout>
|
||||
|
Loading…
Reference in New Issue
Block a user