Files
nuhodds_fi4/resources/views/filament/tables/columns/mapper-right-column.blade.php
T
2025-12-28 08:26:49 +01:00

44 lines
2.1 KiB
PHP

<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"
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.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>
<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>
<div>{{ $record->event_id }}</div>
</div>
<div class="flex justify-center space-x-4">
<div class="text-right font-bold">{{ $record->home }}</div>
<div class="w-6 text-center">-</div>
<div class="text-left font-bold">{{ $record->away }}</div>
</div>
<div class="flex justify-center space-x-4 text-gray-600 dark:text-gray-500">
<div>{{ $record->country_betsapi?->name }}</div>
<div>{{ $record->group }}</div>
</div>
</div>
<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" />
@endif
</div>
</li>