2023-05-22 15:47:40 +02:00
|
|
|
<x-layout>
|
2023-05-23 10:15:12 +02:00
|
|
|
<div class="flex items-center gap-2">
|
2023-06-02 12:34:45 +02:00
|
|
|
<h1>Environments</h1>
|
2023-07-26 13:23:47 +02:00
|
|
|
<x-forms.button class="btn" onclick="newEnvironment.showModal()">+ Add</x-forms.button>
|
2023-08-11 20:19:42 +02:00
|
|
|
<livewire:project.add-environment :project="$project" />
|
2023-08-23 10:14:39 +02:00
|
|
|
@if ($project->applications->count() === 0)
|
|
|
|
<livewire:project.delete-project :project_id="$project->id" />
|
|
|
|
@endif
|
2023-05-23 10:15:12 +02:00
|
|
|
</div>
|
2023-08-23 10:14:39 +02:00
|
|
|
<div class="text-xs truncate subtitle lg:text-sm">{{ $project->name }}</div>
|
2023-06-16 12:35:40 +02:00
|
|
|
<div class="grid gap-2 lg:grid-cols-2">
|
2023-05-23 10:15:12 +02:00
|
|
|
@forelse ($project->environments as $environment)
|
2023-12-27 16:45:01 +01:00
|
|
|
<a class="items-center justify-center font-bold box"
|
2023-12-07 19:06:32 +01:00
|
|
|
href="{{ route('project.resources', [$project->uuid, $environment->name]) }}">
|
2023-05-22 15:47:40 +02:00
|
|
|
{{ $environment->name }}
|
|
|
|
</a>
|
2023-05-23 10:15:12 +02:00
|
|
|
@empty
|
|
|
|
<p>No environments found.</p>
|
|
|
|
@endforelse
|
2023-05-22 15:47:40 +02:00
|
|
|
</div>
|
|
|
|
</x-layout>
|