mapping search wip (stuck)

This commit is contained in:
salam committed 2025-12-29 15:32:24 +01:00
1 parent ea91af51fa
commit b475d78f43
14 files changed
+126 -33

No files matched your search

@@ -1,24 +1,26 @@
<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"
space-x-4 drag-and-drop__item"
x-data="{ moveoverright: false }" id={{ $record->event_id }}
x-on:dragstart.self="
dragging = true;
event.dataTransfer.effectAllowed = 'move';
event.dataTransfer.setData('text/plain', event.target.id);"
x-on:dragover.prevent="moveoverright = true" x-on:dragleave.prevent="moveoverright = false"
x-on:drop="moveoverright = false" :class="moveoverright ? 'bg-blue-500/10!' : ''"
x-on:drop="moveoverright = false" :class="moveoverright ? 'bg-primary-500/20!' : ''"
x-on:drop.prevent="
const id = event.dataTransfer.getData('text/plain');
const target = event.target.closest('li');
if(document.getElementById(id).getAttribute('mapper') !=target.getAttribute('mapper'))
$wire.mountAction('right', { match_id: id, event_id: target.id });"
draggable="true" mapper="right">
{{-- console.log(document.getElementById(id).getAttribute('mapper'), id, target.id, target.getAttribute('mapper'));" --}}
{{-- $dispatch('map-checker', { match_id: id, event_id:target.id });" --}}
<div class="w-6 flex-none my-auto">
<x-filament::icon-button icon="heroicon-o-arrows-pointing-out" />
</div>
@include('filament.tables.columns.parts.move-botton')
@include('filament.tables.columns.parts.search-button', [
'target' => 'input-1',
'find' => $record->home,
])
<div class="flex-1 flex flex-col justify-center space-y-0">
<div class="flex justify-around text-gray-600 dark:text-gray-500">
<div>{{ $record->starttime }}</div>
@@ -35,6 +37,11 @@
</div>
</div>
@include('filament.tables.columns.parts.search-button', [
'target' => 'input-1',
'find' => $record->away,
])
<div class="w-6 flex-none mx-auto my-auto">
@if ($record->group_cc)
<x-icon name="flag-country-{{ $record->group_cc }}" class="h5 w-5" />