wip change bettype in events monitor
This commit is contained in:
1 parent
245255756c
commit
c6fd66189b
15 files changed
+255
-279
No files matched your search
@@ -24,6 +24,6 @@
|
||||
x-on:click="$wire.set('tableFilters', {'published_at': {'value': '0'}})">
|
||||
GG
|
||||
</x-filament::button>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,105 +0,0 @@
|
||||
<x-filament-panels::page class="h-[calc(100vh-150px)]" id="monitor">
|
||||
<div x-load-css="[@js(\Filament\Support\Facades\FilamentAsset::getStyleHref('tabulator-light'))]"></div>
|
||||
<div x-load-css="[@js(\Filament\Support\Facades\FilamentAsset::getStyleHref('tabulator-dark'))]"></div>
|
||||
|
||||
<style>
|
||||
.fi-page-content {
|
||||
row-gap: 0;
|
||||
}
|
||||
|
||||
#monitor-table {
|
||||
border: 1px solid #e7e7e8;
|
||||
}
|
||||
|
||||
.tabulator {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.tabulator .tabulator-header {
|
||||
background-color: #fff;
|
||||
border-bottom: 1px solid #e7e7e8;
|
||||
}
|
||||
|
||||
.tabulator .tabulator-footer {
|
||||
background-color: #fff;
|
||||
border-top: 1px solid #e7e7e8;
|
||||
}
|
||||
|
||||
.dark {
|
||||
#monitor-table {
|
||||
border: 1px solid #525252;
|
||||
}
|
||||
|
||||
.tabulator {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.tabulator .tabulator-header {
|
||||
border-bottom: 1px solid #525252;
|
||||
}
|
||||
|
||||
.tabulator .tabulator-footer {
|
||||
border-top: 1px solid #525252;
|
||||
}
|
||||
|
||||
.tabulator .tabulator-header .tabulator-col {
|
||||
border-right: 1px solid #525252;
|
||||
}
|
||||
</style>
|
||||
<script type="module">
|
||||
import {
|
||||
TabulatorFull as Tabulator
|
||||
} from './js/app/tabulator-js.js';
|
||||
|
||||
var r = 10;
|
||||
|
||||
var tabledata = {!! $data !!}
|
||||
var table = new Tabulator("#monitor-table", {
|
||||
rowHeight: 80,
|
||||
height: screen.height - 382 + "px",
|
||||
pagination: true,
|
||||
dataLoader: true,
|
||||
data: tabledata,
|
||||
|
||||
layout: "fitColumns",
|
||||
pagination: "local",
|
||||
paginationSize: r,
|
||||
paginationCounter: "rows",
|
||||
|
||||
columns: [{
|
||||
title: "",
|
||||
width: 30,
|
||||
field: "sid",
|
||||
headerSort: false,
|
||||
hozAlign: "center",
|
||||
formatter: function(cell, formatterParams) {
|
||||
var value = cell.getValue();
|
||||
return "<img style='height:20px; width:20px; margin: 3px 0' src='svg/" + value +
|
||||
".svg'>";
|
||||
}
|
||||
}, {
|
||||
title: "Id",
|
||||
field: "id",
|
||||
hozAlign: "center",
|
||||
width: 100
|
||||
}, {
|
||||
title: "Event",
|
||||
field: "e",
|
||||
hozAlign: "center",
|
||||
width: 500,
|
||||
formatter: function(cell, formatterParams) {
|
||||
var value = cell.getValue();
|
||||
var liga = cell.getData().g;
|
||||
var country = cell.getData().c;
|
||||
|
||||
return "<span style='font-weight:bold;'>" + value +
|
||||
"</span><br/><span style='padding:3px;'>" + country + ' > ' + liga + "</span>";
|
||||
}
|
||||
}],
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<div id="monitor-table" class="h-20">
|
||||
</div>
|
||||
</x-filament-panels::page>
|
||||
@@ -5,7 +5,6 @@ use App\Utilities\OddsFormatting;
|
||||
|
||||
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 grid-rows-5 oddsbox">
|
||||
|
||||
|
||||
{{ $loadMultiline($record->odds_3way) }}
|
||||
|
||||
@foreach ($getMultiline() as $row)
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<x-filament::dropdown>
|
||||
<x-slot name="trigger">
|
||||
<x-filament::button icon="phosphor-user">
|
||||
{{ $client }}
|
||||
</x-filament::button>
|
||||
</x-slot>
|
||||
|
||||
<x-filament::dropdown.list>
|
||||
@foreach ($clients as $id => $name)
|
||||
<x-filament::dropdown.list.item wire:click="swop({{ $id }})" icon="phosphor-key">
|
||||
{{ $name }}
|
||||
</x-filament::dropdown.list.item>
|
||||
@endforeach
|
||||
</x-filament::dropdown.list>
|
||||
</x-filament::dropdown>
|
||||
Reference in new issue
Block a user