This commit is contained in:
salam committed 2025-12-27 14:56:09 +01:00
1 parent 5c18ada237
commit 5fb2916f19
6 files changed
+27 -18

No files matched your search

@@ -1,5 +1,5 @@
<li class="bg-white w-full h-full overflow-hidden p-2 cursor-grab flex space-x-10 drag-and-drop__item"
id={{ $record->id }}
<li class="bg-white dark:bg-gray-900 w-full h-full overflow-hidden p-1 cursor-grab flex space-x-10 drag-and-drop__item"
mapper="left" id={{ $record->id }}
x-on:dragstart.self="
dragging = true;
event.dataTransfer.effectAllowed = 'move';
@@ -7,7 +7,7 @@
x-on:drop.prevent="
const id = event.dataTransfer.getData('text/plain');
const target = event.target.closest('li');
$dispatch('map-checker',{ 'id': id, 'target':target.id });"
console.log('left', id, target.id, target.getAttribute('mapper'));"
draggable="true">
<div class="w-6 flex-none mx-auto my-auto">
@@ -18,9 +18,7 @@
@endif
</div>
<div>{{ $record->id }}</div>
<div class="flex-1 flex flex-col justify-center space-y-1">
<div class="flex-1 flex flex-col justify-center space-y-0">
<div class="flex justify-center text-primary-500">{{ $record->starttime }}</div>
<div class="flex justify-center space-x-4">
<div class="text-right font-bold">{{ $record->home->name }}</div>
@@ -30,6 +28,9 @@
<div class="flex justify-center space-x-4">
<div>{{ $record->country?->name }}</div>
<div>{{ $record->competition_group->name }}</div>
<x-filament::badge>
{{ $record->id }}
</x-filament::badge>
</div>
</div>
@@ -37,3 +38,5 @@
<x-filament::icon-button icon="heroicon-o-arrows-pointing-out" />
</div>
</li>
{{-- if(target.mapper =='left') --}}
{{-- $dispatch('map-checker',{ 'id': id, 'target':target.id });" --}}