lasthourcloud/resources/views/livewire/project/shared/environment-variable/all.blade.php

27 lines
1.1 KiB
PHP
Raw Normal View History

2023-08-07 20:14:21 +00:00
<div class="flex flex-col gap-2">
<div>
<div class="flex items-center gap-2">
<h2>Environment Variables</h2>
<x-forms.button class="btn" onclick="newVariable.showModal()">+ Add</x-forms.button>
2023-08-11 18:19:42 +00:00
<livewire:project.shared.environment-variable.add />
2023-08-07 20:14:21 +00:00
</div>
<div>Environment (secrets) variables for this resource.</div>
</div>
@forelse ($resource->environment_variables as $env)
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
2023-08-11 18:19:42 +00:00
:env="$env" />
2023-08-07 20:14:21 +00:00
@empty
<div class="text-neutral-500">No environment variables found.</div>
@endforelse
@if ($resource->type() === 'application' && $resource->environment_variables_preview->count() > 0)
<div>
<h3>Preview Deployments</h3>
<div>Environment (secrets) variables for Preview Deployments.</div>
</div>
@foreach ($resource->environment_variables_preview as $env)
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
2023-08-11 18:19:42 +00:00
:env="$env" />
2023-08-07 20:14:21 +00:00
@endforeach
@endif
</div>