2024-09-19 17:27:25 +00:00
< div >
2023-09-04 07:44:44 +00:00
< x - security . navbar />
2025-04-29 07:04:24 +00:00
2023-09-04 07:44:44 +00:00
< div class = " flex gap-2 " >
< h2 class = " pb-4 " > Private Keys </ h2 >
2024-03-25 10:33:38 +00:00
< x - modal - input buttonTitle = " + Add " title = " New Private Key " >
< livewire : security . private - key . create />
</ x - modal - input >
2025-04-29 07:04:24 +00:00
< x - modal - confirmation title = " Confirm unused SSH Key Deletion? " buttonTitle = " Delete unused SSH Keys " isErrorButton
submitAction = " cleanupUnusedKeys " : actions = " ['All unused SSH keys (marked with unused) are permanently deleted.'] " : confirmWithText = " false " : confirmWithPassword = " false " />
2023-09-04 07:44:44 +00:00
</ div >
2023-06-15 07:58:17 +00:00
< div class = " grid gap-2 lg:grid-cols-2 " >
@ forelse ( $privateKeys as $key )
2024-05-03 07:43:32 +00:00
< a class = " box group "
2023-09-04 07:44:44 +00:00
href = " { { route('security.private-key.show', ['private_key_uuid' => data_get( $key , 'uuid')]) }} " >
2024-04-29 09:06:06 +00:00
< div class = " flex flex-col mx-6 " >
< div class = " box-title " >
{{ data_get ( $key , 'name' ) }}
</ div >
< div class = " box-description " >
{{ $key -> description }}
2025-05-14 10:43:23 +00:00
@ if ( ! $key -> isInUse ())
< span class = " inline-flex items-center px-2 py-0.5 rounded-sm text-xs font-medium bg-yellow-400 text-black " > Unused </ span >
2024-09-19 17:27:25 +00:00
@ endif
2024-04-29 09:06:06 +00:00
</ div >
2025-04-29 07:04:24 +00:00
2023-06-15 07:58:17 +00:00
</ div >
</ a >
@ empty
2024-03-21 13:30:35 +00:00
< div > No private keys found .</ div >
2023-06-15 07:58:17 +00:00
@ endforelse
</ div >
2025-04-29 07:04:24 +00:00
</ div >