43 lines
1.5 KiB
PHP
43 lines
1.5 KiB
PHP
<li class="w-full h-full overflow-hidden p-2 cursor-grab flex space-x-10 drag-and-drop__item" id={{ $record->event_id }}
|
|
x-on:dragstart.self="
|
|
dragging = true;
|
|
event.dataTransfer.effectAllowed = 'move';
|
|
event.dataTransfer.setData('text/plain', event.target.id);
|
|
"
|
|
x-on:drop.prevent="
|
|
const id = event.dataTransfer.getData('text/plain');
|
|
const target = event.target.closest('ul');
|
|
const element = document.getElementById(id);
|
|
target.appendChild(element);
|
|
"
|
|
draggable="true">
|
|
|
|
|
|
|
|
<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-1">
|
|
<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 }}</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">
|
|
<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>
|