refactor routes

This commit is contained in:
Andras Bacsai
2024-01-07 16:23:41 +01:00
parent bf44b4b949
commit 4c3907c296
135 changed files with 1881 additions and 1409 deletions

View File

@@ -2,11 +2,11 @@
<x-security.navbar />
<div class="flex gap-2">
<h2 class="pb-4">Private Keys</h2>
<a href="{{ route('security.private-key.new') }}"><x-forms.button>+ Add</x-forms.button></a>
<a href="{{ route('security.private-key.create') }}"><x-forms.button>+ Add</x-forms.button></a>
</div>
<div class="grid gap-2 lg:grid-cols-2">
@forelse ($privateKeys as $key)
<a class="text-center hover:no-underline box group"
<a class="text-center hover:no-underline box group"
href="{{ route('security.private-key.show', ['private_key_uuid' => data_get($key, 'uuid')]) }}">
<div class="group-hover:text-white">
<div>{{ $key->name }}</div>

View File

@@ -1,5 +0,0 @@
<x-layout>
<h1>Create a new Private Key</h1>
<div class="subtitle ">Private Keys are used to connect to your servers without passwords.</div>
<livewire:private-key.create />
</x-layout>

View File

@@ -1,4 +0,0 @@
<x-layout>
<x-security.navbar />
<livewire:private-key.change :private_key="$private_key" />
</x-layout>