2023-08-07 13:31:42 +00:00
|
|
|
<x-layout>
|
2023-08-11 15:31:53 +00:00
|
|
|
<x-team.navbar :team="auth()
|
|
|
|
->user()
|
|
|
|
->currentTeam()" />
|
2023-08-07 13:31:42 +00:00
|
|
|
<div class="flex items-start gap-2">
|
|
|
|
<h2 class="pb-4">S3 Storages</h2>
|
2023-12-07 21:56:55 +00:00
|
|
|
<a wire:navigate class="text-white hover:no-underline" href="/team/storages/new"> <x-forms.button class="btn">+ Add
|
2023-08-14 13:22:29 +00:00
|
|
|
</x-forms.button></a>
|
2023-08-07 13:31:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="grid gap-2 lg:grid-cols-2">
|
|
|
|
@forelse ($s3 as $storage)
|
2023-08-11 15:31:53 +00:00
|
|
|
<div x-data x-on:click="goto('{{ $storage->uuid }}')" @class(['gap-2 border cursor-pointer box group border-transparent'])>
|
2023-08-07 13:31:42 +00:00
|
|
|
<div class="flex flex-col mx-6">
|
|
|
|
<div class=" group-hover:text-white">
|
|
|
|
{{ $storage->name }}
|
|
|
|
</div>
|
|
|
|
<div class="text-xs group-hover:text-white">
|
|
|
|
{{ $storage->description }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@empty
|
|
|
|
<div>
|
|
|
|
<div>No storage found.</div>
|
2023-08-11 15:31:53 +00:00
|
|
|
<x-use-magic-bar link="/team/storages/new" />
|
2023-08-07 13:31:42 +00:00
|
|
|
</div>
|
|
|
|
@endforelse
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
function goto(uuid) {
|
|
|
|
window.location.href = '/team/storages/' + uuid;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</x-layout>
|