2024-05-15 12:28:03 +02:00
|
|
|
@push('menu')
|
|
|
|
|
<x-menu-action tooltip="Einstellungen">
|
|
|
|
|
<svg class="w-5 h-5 mb-1 text-gray-500 dark:text-gray-400 group-hover:text-blue-600 dark:group-hover:text-blue-500" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
|
|
|
|
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 12.25V1m0 11.25a2.25 2.25 0 0 0 0 4.5m0-4.5a2.25 2.25 0 0 1 0 4.5M4 19v-2.25m6-13.5V1m0 2.25a2.25 2.25 0 0 0 0 4.5m0-4.5a2.25 2.25 0 0 1 0 4.5M10 19V7.75m6 4.5V1m0 11.25a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5ZM16 19v-2"/>
|
|
|
|
|
</svg>
|
|
|
|
|
</x-menu-action>
|
|
|
|
|
<div class="flex items-center justify-center">
|
2024-05-23 16:51:55 +02:00
|
|
|
<x-drawer-trigger target="album-add" action="open">
|
2024-05-15 12:28:03 +02:00
|
|
|
<button data-tooltip-target="tooltip-new" type="button" class="inline-flex items-center justify-center w-10 h-10 font-medium bg-blue-600 rounded-full hover:bg-blue-700 group focus:ring-4 focus:ring-blue-300 focus:outline-none dark:focus:ring-blue-800">
|
|
|
|
|
<svg class="w-4 h-4 text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18">
|
|
|
|
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 1v16M1 9h16"/>
|
|
|
|
|
</svg>
|
|
|
|
|
<span class="sr-only">New item</span>
|
|
|
|
|
</button>
|
2024-05-23 16:51:55 +02:00
|
|
|
</x-drawer-trigger>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="tooltip-new" role="tooltip" class="absolute z-10 invisible inline-block px-3 py-2 text-sm font-medium text-white transition-opacity duration-300 bg-gray-900 rounded-lg shadow-sm opacity-0 tooltip dark:bg-gray-700">
|
|
|
|
|
Create new item
|
|
|
|
|
<div class="tooltip-arrow" data-popper-arrow></div>
|
|
|
|
|
</div>
|
2024-05-15 12:28:03 +02:00
|
|
|
@endpush
|
|
|
|
|
|
2024-06-21 19:27:40 +02:00
|
|
|
<x-layouts.app :title="$category->name">
|
|
|
|
|
<div class="flex flex-wrap flex-row gap-4">
|
|
|
|
|
<x-drawer-trigger target="album-add" action="open" class="relative rounded-lg cursor-pointer h-80 flex-grow flex items-center justify-center bg-gray-300 sm:w-96 dark:bg-gray-700 hover:opacity-50">
|
|
|
|
|
<svg class="w-24 h-24 text-gray-200 dark:text-gray-600" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14m-7 7V5"/>
|
|
|
|
|
</svg>
|
|
|
|
|
</x-drawer-trigger>
|
2024-05-15 12:28:03 +02:00
|
|
|
@foreach ($albums as $album)
|
2024-06-21 19:27:40 +02:00
|
|
|
<x-album.element :album="$album"></x-album.element>
|
2024-05-15 12:28:03 +02:00
|
|
|
@endforeach
|
|
|
|
|
</div>
|
2024-05-23 16:51:55 +02:00
|
|
|
<x-drawer name="album-add" >
|
|
|
|
|
<x-slot:title>Neues Album in {{ $category->name }} erstellen</x-slot:title>
|
2024-05-15 12:28:03 +02:00
|
|
|
<x-slot:content>
|
2024-05-23 16:51:55 +02:00
|
|
|
<livewire:drawer.album.create></livewire:drawer.album.create>
|
2024-05-15 12:28:03 +02:00
|
|
|
</x-slot:content>
|
|
|
|
|
</x-drawer>
|
2024-06-12 19:51:41 +02:00
|
|
|
</x-layouts.app>
|