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