coolify/resources/views/project/resources.blade.php

46 lines
2.4 KiB
PHP
Raw Normal View History

<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>
<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>
2023-06-16 12:35:40 +02:00
@if ($environment->applications->count() === 0)
<livewire:project.delete-environment :environment_id="$environment->id" />
@endif
2023-05-22 22:30:33 +02:00
</div>
2023-06-16 12:35:40 +02:00
<nav class="flex pt-2 pb-10">
<ol class="flex items-center">
2023-06-07 21:44:16 +02:00
<li class="inline-flex items-center">
2023-06-16 12:35:40 +02:00
<a class="text-xs truncate lg:text-sm"
href="{{ route('project.show', ['project_uuid' => request()->route('project_uuid')]) }}">
{{ $project->name }}</a>
2023-05-22 22:30:33 +02:00
</li>
<li>
2023-06-07 21:44:16 +02:00
<div class="flex items-center">
<svg aria-hidden="true" class="w-4 h-4 mx-1 font-bold text-warning" fill="currentColor"
viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
clip-rule="evenodd"></path>
</svg>
2023-06-16 12:35:40 +02:00
<a class="text-xs truncate lg:text-sm"
href="{{ route('project.resources', ['environment_name' => request()->route('environment_name'), 'project_uuid' => request()->route('project_uuid')]) }}">{{ request()->route('environment_name') }}</a>
2023-06-07 21:44:16 +02:00
</div>
2023-05-23 09:53:24 +02:00
</li>
2023-06-07 21:44:16 +02:00
</ol>
</nav>
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-16 12:35:40 +02:00
<div class="grid gap-2 lg:grid-cols-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
</div>
</x-layout>