lasthourcloud/resources/views/project/resources.blade.php

46 lines
1.7 KiB
PHP
Raw Normal View History

<x-layout>
2023-05-22 20:30:33 +00:00
<div class="flex flex-col">
<div class="flex items-center gap-2">
<h1 class="pb-0">Resources</h1>
<livewire:project.delete :project_id="$project->id" :resource_count="$project->applications->count()" />
</div>
<div class="pb-10 text-sm breadcrumbs">
<ul>
2023-05-23 07:53:24 +00:00
<li>
<a href="{{ route('project.show', ['project_uuid' => request()->route('project_uuid')]) }}">
{{ $project->name }}
</a>
2023-05-22 20:30:33 +00:00
</li>
<li>
2023-05-23 07:53:24 +00:00
{{ request()->route('environment_name') }}
</li>
2023-05-22 20:30:33 +00:00
</ul>
</div>
2023-05-09 09:33:50 +00:00
</div>
@if ($environment->applications->count() === 0)
<p>No resources yet.</p>
@endif
2023-05-23 07:53:24 +00:00
<div class="flex flex-col gap-2">
2023-05-16 13:27:47 +00:00
@foreach ($environment->applications->sortBy('name') as $application)
2023-05-16 07:35:09 +00:00
<a class="box"
href="{{ route('project.application.configuration', [$project->uuid, $environment->name, $application->uuid]) }}">
{{ $application->name }}
</a>
2023-03-29 11:13:27 +00:00
@endforeach
2023-03-30 15:29:01 +00:00
{{-- @foreach ($environment->databases as $database)
<p>
<a href="{{ route('project.database', [$project->uuid, $environment->name, $database->uuid]) }}">
{{ $database->name }}
</a>
</p>
2023-03-29 11:13:27 +00:00
@endforeach
@foreach ($environment->services as $service)
<p>
<a href="{{ route('project.service', [$project->uuid, $environment->name, $service->uuid]) }}">
{{ $service->name }}
</a>
</p>
2023-03-30 15:29:01 +00:00
@endforeach --}}
2023-03-29 11:13:27 +00:00
</div>
</x-layout>