diff --git a/app/Livewire/BoardDispatcher.php b/app/Livewire/BoardDispatcher.php index eaeb97f3..df22f89f 100644 --- a/app/Livewire/BoardDispatcher.php +++ b/app/Livewire/BoardDispatcher.php @@ -79,15 +79,10 @@ class BoardDispatcher extends Component public function copy() { - $str = ''; - foreach ($this->results as $k => $result) { - $str .= ''; - $str .= ''; - $str .= ''; - $str .= ''; - $str .= ''; + $str = ''; + foreach ($this->results as $k => $row) { + $str .= implode("\t", $row) . "\n"; } - $str .= '
' . $result['name'] . '' . $result['position'] . '' . number_format(mt_rand(1, 100) / 100, 2) . '
'; $this->js("navigator.clipboard.writeText('{$str}')"); } diff --git a/public/images/soccerfield-reduced.jpg b/public/images/soccerfield-reduced.jpg new file mode 100644 index 00000000..4e607be5 Binary files /dev/null and b/public/images/soccerfield-reduced.jpg differ diff --git a/resources/views/livewire/board-dispatcher.blade.php b/resources/views/livewire/board-dispatcher.blade.php index d754033b..a0094e6f 100644 --- a/resources/views/livewire/board-dispatcher.blade.php +++ b/resources/views/livewire/board-dispatcher.blade.php @@ -67,7 +67,7 @@
+ style="background-image: url({{ asset('images/soccerfield-reduced.jpg') }});"> @foreach ($lists as $listId => $items) @if (str_starts_with($listId, 'dest-'))