2023-03-28 22:13:08 +02:00
|
|
|
<x-layout>
|
2023-05-22 22:30:33 +02:00
|
|
|
<div class="flex flex-col">
|
|
|
|
<div class="flex items-center gap-2">
|
2023-06-02 12:34:45 +02:00
|
|
|
<h1>Resources</h1>
|
2023-05-23 10:15:12 +02:00
|
|
|
<livewire:project.delete-environment :environment_id="$environment->id" :resource_count="$environment->applications->count()" />
|
2023-05-22 22:30:33 +02:00
|
|
|
</div>
|
|
|
|
<div class="pb-10 text-sm breadcrumbs">
|
|
|
|
<ul>
|
2023-05-23 09:53:24 +02:00
|
|
|
<li>
|
|
|
|
<a href="{{ route('project.show', ['project_uuid' => request()->route('project_uuid')]) }}">
|
|
|
|
{{ $project->name }}
|
|
|
|
</a>
|
2023-05-22 22:30:33 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
2023-05-23 09:53:24 +02:00
|
|
|
{{ request()->route('environment_name') }}
|
|
|
|
</li>
|
2023-05-22 22:30:33 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
2023-05-09 11:33:50 +02:00
|
|
|
</div>
|
|
|
|
@if ($environment->applications->count() === 0)
|
2023-05-23 10:15:12 +02:00
|
|
|
<p>No resources found.</p>
|
2023-05-09 11:33:50 +02:00
|
|
|
@endif
|
2023-06-07 15:08:35 +02:00
|
|
|
<div class="grid grid-cols-2 gap-2">
|
2023-05-16 15:27:47 +02:00
|
|
|
@foreach ($environment->applications->sortBy('name') as $application)
|
2023-05-16 09:35:09 +02:00
|
|
|
<a class="box"
|
|
|
|
href="{{ route('project.application.configuration', [$project->uuid, $environment->name, $application->uuid]) }}">
|
|
|
|
{{ $application->name }}
|
|
|
|
</a>
|
2023-03-29 13:13:27 +02:00
|
|
|
@endforeach
|
2023-03-30 17:29:01 +02:00
|
|
|
{{-- @foreach ($environment->databases as $database)
|
2023-03-28 22:13:08 +02:00
|
|
|
<p>
|
|
|
|
<a href="{{ route('project.database', [$project->uuid, $environment->name, $database->uuid]) }}">
|
|
|
|
{{ $database->name }}
|
|
|
|
</a>
|
|
|
|
</p>
|
2023-03-29 13:13:27 +02:00
|
|
|
@endforeach
|
|
|
|
@foreach ($environment->services as $service)
|
2023-03-28 22:13:08 +02:00
|
|
|
<p>
|
|
|
|
<a href="{{ route('project.service', [$project->uuid, $environment->name, $service->uuid]) }}">
|
|
|
|
{{ $service->name }}
|
|
|
|
</a>
|
|
|
|
</p>
|
2023-03-30 17:29:01 +02:00
|
|
|
@endforeach --}}
|
2023-03-29 13:13:27 +02:00
|
|
|
</div>
|
2023-03-28 22:13:08 +02:00
|
|
|
</x-layout>
|