feat: init postgresql database

This commit is contained in:
Andras Bacsai
2023-08-07 18:46:40 +02:00
parent 0a040a0531
commit a020bc872d
38 changed files with 430 additions and 66 deletions

View File

@@ -5,7 +5,7 @@
<a href="{{ route('project.resources.new', ['project_uuid' => request()->route('project_uuid'), 'environment_name' => request()->route('environment_name')]) }} "
class="font-normal text-white normal-case border-none rounded hover:no-underline btn btn-primary btn-sm no-animation">+
Add</a>
@if ($environment->applications->count() === 0)
@if ($environment->can_delete_environment())
<livewire:project.delete-environment :environment_id="$environment->id" />
@endif
</div>
@@ -31,14 +31,26 @@
</ol>
</nav>
</div>
@if ($environment->applications->count() === 0)
@if ($environment->can_delete_environment())
<p>No resources found.</p>
@endif
<div class="grid gap-2 lg:grid-cols-2">
@foreach ($environment->applications->sortBy('name') as $application)
<a class="box"
href="{{ route('project.application.configuration', [$project->uuid, $environment->name, $application->uuid]) }}">
{{ $application->name }}
<div class="flex flex-col">
<div>{{ $application->name }}</div>
<div class="text-xs text-gray-400">{{ $application->description }}</div>
</div>
</a>
@endforeach
@foreach ($environment->databases->sortBy('name') as $databases)
<a class="box"
href="{{ route('project.database.configuration', [$project->uuid, $environment->name, $databases->uuid]) }}">
<div class="flex flex-col">
<div>{{ $databases->name }}</div>
<div class="text-xs text-gray-400">{{ $databases->description }}</div>
</div>
</a>
@endforeach
</div>