monitor wip
This commit is contained in:
1 parent
739222718a
commit
f7298e3ca7
33 files changed
+562
-43
No files matched your search
@@ -20,9 +20,9 @@ class _Dc
|
|||||||
foreach ($offer as $value) {
|
foreach ($offer as $value) {
|
||||||
$odds['dc1x'] = (float) $value->o1;
|
$odds['dc1x'] = (float) $value->o1;
|
||||||
$odds['dc12'] = (float) $value->o2;
|
$odds['dc12'] = (float) $value->o2;
|
||||||
$odds['dc2x'] = (float) $value->o3;
|
$odds['dcx2'] = (float) $value->o3;
|
||||||
}
|
}
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['dc1x'], $odds['dc12'], $odds['dc2x']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['dc1x'], $odds['dc12'], $odds['dcx2']], 1);
|
||||||
|
|
||||||
OddsDc::updateOrCreate([
|
OddsDc::updateOrCreate([
|
||||||
'event_id' => Nuh::$id,
|
'event_id' => Nuh::$id,
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ namespace App\Filament\Resources\Events\Tables;
|
|||||||
|
|
||||||
use App\Filament\Tables\Columns\Column3way;
|
use App\Filament\Tables\Columns\Column3way;
|
||||||
use App\Filament\Tables\Columns\ColumnDc;
|
use App\Filament\Tables\Columns\ColumnDc;
|
||||||
|
use App\Filament\Tables\Columns\ColumnDnb;
|
||||||
|
use App\Filament\Tables\Columns\ColumnGgng;
|
||||||
|
use App\Filament\Tables\Columns\ColumnTotal;
|
||||||
use App\Filament\Tables\Columns\MatchIds;
|
use App\Filament\Tables\Columns\MatchIds;
|
||||||
use App\Models\BettypeUser;
|
use App\Models\BettypeUser;
|
||||||
use App\Models\Country;
|
use App\Models\Country;
|
||||||
@@ -46,7 +49,7 @@ class EventsTable
|
|||||||
->size(IconSize::ExtraLarge)
|
->size(IconSize::ExtraLarge)
|
||||||
->icon(fn ($record) => $record->sport->icon)
|
->icon(fn ($record) => $record->sport->icon)
|
||||||
->tooltip(fn ($record) => $record->id),
|
->tooltip(fn ($record) => $record->id),
|
||||||
MatchIds::make('match_ids'),
|
// MatchIds::make('match_ids'),
|
||||||
TextColumn::make('id')->hidden()->searchable(),
|
TextColumn::make('id')->hidden()->searchable(),
|
||||||
TextColumn::make('betsapi_id')->hidden()->searchable(),
|
TextColumn::make('betsapi_id')->hidden()->searchable(),
|
||||||
TextColumn::make('betradar_id')->hidden()->searchable(),
|
TextColumn::make('betradar_id')->hidden()->searchable(),
|
||||||
@@ -69,8 +72,12 @@ class EventsTable
|
|||||||
->alignRight(),
|
->alignRight(),
|
||||||
TextColumn::make('away.name')
|
TextColumn::make('away.name')
|
||||||
->searchable(),
|
->searchable(),
|
||||||
Column3way::make('odds3way')->visible(fn () => in_array(1, self::$bettype_settings))->width(280)->label(fn () => view('filament.tables.columns.multiline.labels', ['menu' => '1x2'])),
|
Column3way::make('odds3way')->visible(fn () => in_array(1, self::$bettype_settings))->width(225)->label(fn () => view('filament.tables.columns.multiline.labels', ['menu' => '1x2'])),
|
||||||
ColumnDc::make('oddsdc')->visible(fn () => in_array(2, self::$bettype_settings))->width(280)->label(fn () => view('filament.tables.columns.multiline.labels', ['menu' => 'dc'])),
|
ColumnDc::make('oddsdc')->visible(fn () => in_array(2, self::$bettype_settings))->width(225)->label(fn () => view('filament.tables.columns.multiline.labels', ['menu' => 'dc'])),
|
||||||
|
ColumnDnb::make('oddsdnb')->visible(fn () => in_array(3, self::$bettype_settings))->width(190)->label(fn () => view('filament.tables.columns.multiline.labels', ['menu' => 'dnb'])),
|
||||||
|
ColumnGgng::make('oddsggng')->visible(fn () => in_array(4, self::$bettype_settings))->width(190)->label(fn () => view('filament.tables.columns.multiline.labels', ['menu' => 'gg'])),
|
||||||
|
ColumnGgng::make('oddstq')->visible(fn () => in_array(5, self::$bettype_settings))->width(190)->label(fn () => view('filament.tables.columns.multiline.labels', ['menu' => 'tq'])),
|
||||||
|
ColumnTotal::make('oddstotal')->visible(fn () => in_array(6, self::$bettype_settings))->width(225)->label(fn () => view('filament.tables.columns.multiline.labels', ['menu' => 'ou'])),
|
||||||
])
|
])
|
||||||
->poll('10s')
|
->poll('10s')
|
||||||
->defaultSort('starttime', 'ASC')
|
->defaultSort('starttime', 'ASC')
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class Column3way extends Column
|
|||||||
$this->has_odds = count($this->multiline) ? true : false;
|
$this->has_odds = count($this->multiline) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getMultilines(): ?array
|
public function getData(): ?array
|
||||||
{
|
{
|
||||||
return $this->multiline;
|
return $this->multiline;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class ColumnDc extends Column
|
|||||||
$this->has_odds = count($this->multiline) ? true : false;
|
$this->has_odds = count($this->multiline) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getMultilines(): ?array
|
public function getData(): ?array
|
||||||
{
|
{
|
||||||
return $this->multiline;
|
return $this->multiline;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,54 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Tables\Columns;
|
||||||
|
|
||||||
|
use App\Models\OddsDnb;
|
||||||
|
use Filament\Tables\Columns\Column;
|
||||||
|
|
||||||
|
class ColumnDnb extends Column
|
||||||
|
{
|
||||||
|
protected string $view = 'filament.tables.columns.column-dnb';
|
||||||
|
|
||||||
|
protected ?array $multiline;
|
||||||
|
|
||||||
|
protected ?array $fumetto;
|
||||||
|
|
||||||
|
protected ?bool $has_odds;
|
||||||
|
|
||||||
|
public function loadData($record, $multiline_client)
|
||||||
|
{
|
||||||
|
|
||||||
|
$res = OddsDnb::with('bookmaker')->where('event_id', $record->id)->get();
|
||||||
|
|
||||||
|
$this->fumetto = [];
|
||||||
|
|
||||||
|
$this->multiline = [];
|
||||||
|
|
||||||
|
foreach ($res as $item) {
|
||||||
|
|
||||||
|
$this->fumetto[] = $item;
|
||||||
|
foreach ($multiline_client as $slot => $bookmaker) {
|
||||||
|
if ($item->bookmaker_id == $bookmaker->bookmaker_id) {
|
||||||
|
$this->multiline[$slot] = $item;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->has_odds = count($this->multiline) ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getData(): ?array
|
||||||
|
{
|
||||||
|
return $this->multiline;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFumetto()
|
||||||
|
{
|
||||||
|
return $this->fumetto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function hasodds()
|
||||||
|
{
|
||||||
|
return $this->has_odds;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Tables\Columns;
|
||||||
|
|
||||||
|
use App\Models\OddsGgng;
|
||||||
|
use Filament\Tables\Columns\Column;
|
||||||
|
|
||||||
|
class ColumnGgng extends Column
|
||||||
|
{
|
||||||
|
protected string $view = 'filament.tables.columns.column-ggng';
|
||||||
|
|
||||||
|
protected ?array $multiline;
|
||||||
|
|
||||||
|
protected ?array $fumetto;
|
||||||
|
|
||||||
|
protected ?bool $has_odds;
|
||||||
|
|
||||||
|
public function loadData($record, $multiline_client)
|
||||||
|
{
|
||||||
|
|
||||||
|
$res = OddsGgng::with('bookmaker')->where('event_id', $record->id)->get();
|
||||||
|
|
||||||
|
$this->fumetto = [];
|
||||||
|
|
||||||
|
$this->multiline = [];
|
||||||
|
|
||||||
|
foreach ($res as $item) {
|
||||||
|
|
||||||
|
$this->fumetto[] = $item;
|
||||||
|
foreach ($multiline_client as $slot => $bookmaker) {
|
||||||
|
if ($item->bookmaker_id == $bookmaker->bookmaker_id) {
|
||||||
|
$this->multiline[$slot] = $item;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->has_odds = count($this->multiline) ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getData(): ?array
|
||||||
|
{
|
||||||
|
return $this->multiline;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFumetto()
|
||||||
|
{
|
||||||
|
return $this->fumetto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function hasodds()
|
||||||
|
{
|
||||||
|
return $this->has_odds;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Tables\Columns;
|
||||||
|
|
||||||
|
use App\Models\OddsTotal;
|
||||||
|
use Filament\Tables\Columns\Column;
|
||||||
|
|
||||||
|
class ColumnTotal extends Column
|
||||||
|
{
|
||||||
|
protected string $view = 'filament.tables.columns.column-total';
|
||||||
|
|
||||||
|
protected ?array $multiline;
|
||||||
|
|
||||||
|
protected ?array $fumetto;
|
||||||
|
|
||||||
|
protected ?bool $has_odds;
|
||||||
|
|
||||||
|
public function loadData($record, $multiline_client)
|
||||||
|
{
|
||||||
|
|
||||||
|
$res = OddsTotal::with('bookmaker')->where('event_id', $record->id)->get();
|
||||||
|
|
||||||
|
$this->fumetto = [];
|
||||||
|
|
||||||
|
$this->multiline = [];
|
||||||
|
|
||||||
|
foreach ($res as $item) {
|
||||||
|
|
||||||
|
$this->fumetto[] = $item;
|
||||||
|
foreach ($multiline_client as $slot => $bookmaker) {
|
||||||
|
if ($item->bookmaker_id == $bookmaker->bookmaker_id) {
|
||||||
|
$this->multiline[$slot] = $item;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->has_odds = count($this->multiline) ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getData(): ?array
|
||||||
|
{
|
||||||
|
return $this->multiline;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFumetto()
|
||||||
|
{
|
||||||
|
return $this->fumetto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function hasodds()
|
||||||
|
{
|
||||||
|
return $this->has_odds;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Tables\Columns;
|
||||||
|
|
||||||
|
use App\Models\OddsQualify;
|
||||||
|
use Filament\Tables\Columns\Column;
|
||||||
|
|
||||||
|
class ColumnTq extends Column
|
||||||
|
{
|
||||||
|
protected string $view = 'filament.tables.columns.column-tq';
|
||||||
|
|
||||||
|
protected ?array $multiline;
|
||||||
|
|
||||||
|
protected ?array $fumetto;
|
||||||
|
|
||||||
|
protected ?bool $has_odds;
|
||||||
|
|
||||||
|
public function loadData($record, $multiline_client)
|
||||||
|
{
|
||||||
|
|
||||||
|
$res = OddsQualify::with('bookmaker')->where('event_id', $record->id)->get();
|
||||||
|
|
||||||
|
$this->fumetto = [];
|
||||||
|
|
||||||
|
$this->multiline = [];
|
||||||
|
|
||||||
|
foreach ($res as $item) {
|
||||||
|
|
||||||
|
$this->fumetto[] = $item;
|
||||||
|
foreach ($multiline_client as $slot => $bookmaker) {
|
||||||
|
if ($item->bookmaker_id == $bookmaker->bookmaker_id) {
|
||||||
|
$this->multiline[$slot] = $item;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->has_odds = count($this->multiline) ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getData(): ?array
|
||||||
|
{
|
||||||
|
return $this->multiline;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFumetto()
|
||||||
|
{
|
||||||
|
return $this->fumetto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function hasodds()
|
||||||
|
{
|
||||||
|
return $this->has_odds;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -34,7 +34,7 @@ class Odds2way extends Model
|
|||||||
|
|
||||||
public function bookmaker()
|
public function bookmaker()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Bookmaker::class);
|
return $this->belongsTo(Bookmaker::class, 'bookmaker_id', 'txid');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function event()
|
public function event()
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class Odds2wayS1 extends Model
|
|||||||
|
|
||||||
public function bookmaker()
|
public function bookmaker()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Bookmaker::class);
|
return $this->belongsTo(Bookmaker::class, 'bookmaker_id', 'txid');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function event()
|
public function event()
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class OddsDc extends Model
|
|||||||
'bmoid',
|
'bmoid',
|
||||||
'dc1x',
|
'dc1x',
|
||||||
'dc12',
|
'dc12',
|
||||||
'dc2x',
|
'dcx2',
|
||||||
'margin',
|
'margin',
|
||||||
'flag',
|
'flag',
|
||||||
'nuh_check',
|
'nuh_check',
|
||||||
@@ -35,7 +35,7 @@ class OddsDc extends Model
|
|||||||
|
|
||||||
public function bookmaker()
|
public function bookmaker()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Bookmaker::class);
|
return $this->belongsTo(Bookmaker::class, 'bookmaker_id', 'txid');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function event()
|
public function event()
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class OddsDnb extends Model
|
|||||||
|
|
||||||
public function bookmaker()
|
public function bookmaker()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Bookmaker::class);
|
return $this->belongsTo(Bookmaker::class, 'bookmaker_id', 'txid');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function event()
|
public function event()
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class OddsGgng extends Model
|
|||||||
|
|
||||||
public function bookmaker()
|
public function bookmaker()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Bookmaker::class);
|
return $this->belongsTo(Bookmaker::class, 'bookmaker_id', 'txid');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function event()
|
public function event()
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class OddsHandicap extends Model
|
|||||||
|
|
||||||
public function bookmaker()
|
public function bookmaker()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Bookmaker::class);
|
return $this->belongsTo(Bookmaker::class, 'bookmaker_id', 'txid');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function event()
|
public function event()
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class OddsHandicapQ1 extends Model
|
|||||||
|
|
||||||
public function bookmaker()
|
public function bookmaker()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Bookmaker::class);
|
return $this->belongsTo(Bookmaker::class, 'bookmaker_id', 'txid');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function event()
|
public function event()
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class OddsQualify extends Model
|
|||||||
|
|
||||||
public function bookmaker()
|
public function bookmaker()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Bookmaker::class);
|
return $this->belongsTo(Bookmaker::class, 'bookmaker_id', 'txid');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function event()
|
public function event()
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class OddsTotalQ1 extends Model
|
|||||||
|
|
||||||
public function bookmaker()
|
public function bookmaker()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Bookmaker::class);
|
return $this->belongsTo(Bookmaker::class, 'bookmaker_id', 'txid');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function event()
|
public function event()
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ return new class extends Migration
|
|||||||
$table->bigInteger('offer_id')->default(0);
|
$table->bigInteger('offer_id')->default(0);
|
||||||
$table->decimal('dc1x', 7, 3)->default(0);
|
$table->decimal('dc1x', 7, 3)->default(0);
|
||||||
$table->decimal('dc12', 7, 3)->default(0);
|
$table->decimal('dc12', 7, 3)->default(0);
|
||||||
$table->decimal('dc2x', 7, 3)->default(0);
|
$table->decimal('dcx2', 7, 3)->default(0);
|
||||||
$table->decimal('margin', 5, 1)->default(0);
|
$table->decimal('margin', 5, 1)->default(0);
|
||||||
$table->boolean('flag')->default(0);
|
$table->boolean('flag')->default(0);
|
||||||
$table->boolean('nuh_check')->default(0);
|
$table->boolean('nuh_check')->default(0);
|
||||||
|
|||||||
@@ -19,6 +19,10 @@ button[wire\:click="resetTableFiltersForm"] {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fi-ta-header-cell-oddstotal,
|
||||||
|
.fi-ta-header-cell-oddstq,
|
||||||
|
.fi-ta-header-cell-oddsggng,
|
||||||
|
.fi-ta-header-cell-oddsdnb,
|
||||||
.fi-ta-header-cell-odds3way,
|
.fi-ta-header-cell-odds3way,
|
||||||
.fi-ta-header-cell-oddsdc,
|
.fi-ta-header-cell-oddsdc,
|
||||||
.fi-ta-header-cell-id {
|
.fi-ta-header-cell-id {
|
||||||
|
|||||||
@@ -2,12 +2,13 @@
|
|||||||
$loadData($record, $record->multiline_client);
|
$loadData($record, $record->multiline_client);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@include('filament.tables.columns.multiline.fumetto')
|
@include('filament.tables.columns.multiline.fumetto_dc')
|
||||||
|
|
||||||
<div {{ $getExtraAttributeBag() }}
|
<div {{ $getExtraAttributeBag() }} class="max-w-80 grid grid-cols-5 grid-rows-4 text-xs gap-0 justify-between text-right"
|
||||||
class="max-w-80 grid grid-cols-5 grid-rows-4 text-xs gap-0 justify-between text-right">
|
style="width: 225px;">
|
||||||
|
|
||||||
@foreach ($getMultilines() as $item)
|
|
||||||
|
@foreach ($getData() as $item)
|
||||||
@include('filament.tables.columns.multiline.bkm', [
|
@include('filament.tables.columns.multiline.bkm', [
|
||||||
'bookmaker_id' => $item->bookmaker_id,
|
'bookmaker_id' => $item->bookmaker_id,
|
||||||
'icon' => $item->bookmaker->icon ?? '',
|
'icon' => $item->bookmaker->icon ?? '',
|
||||||
@@ -17,7 +18,7 @@
|
|||||||
|
|
||||||
@include('filament.tables.columns.multiline.odds', ['odd' => $item->dc12, 'decimal' => 2])
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->dc12, 'decimal' => 2])
|
||||||
|
|
||||||
@include('filament.tables.columns.multiline.odds', ['odd' => $item->dc2x, 'decimal' => 2])
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->dcx2, 'decimal' => 2])
|
||||||
|
|
||||||
@include('filament.tables.columns.multiline.odds', ['odd' => $item->margin, 'decimal' => 1])
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->margin, 'decimal' => 1])
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
@php
|
||||||
|
$loadData($record, $record->multiline_client);
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.fumetto_dnb')
|
||||||
|
|
||||||
|
<div {{ $getExtraAttributeBag() }} class="max-w-80 grid grid-cols-4 grid-rows-4 text-xs gap-0 justify-between text-right"
|
||||||
|
style="width: 190px;">
|
||||||
|
|
||||||
|
|
||||||
|
@foreach ($getData() as $item)
|
||||||
|
@include('filament.tables.columns.multiline.bkm', [
|
||||||
|
'bookmaker_id' => $item->bookmaker_id,
|
||||||
|
'icon' => $item->bookmaker->icon ?? '',
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->dnb1, 'decimal' => 2])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->dnb2, 'decimal' => 2])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->margin, 'decimal' => 1])
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
@php
|
||||||
|
$loadData($record, $record->multiline_client);
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.fumetto_dnb')
|
||||||
|
|
||||||
|
<div {{ $getExtraAttributeBag() }} class="max-w-80 grid grid-cols-4 grid-rows-4 text-xs gap-0 justify-between text-right"
|
||||||
|
style="width: 190px;">
|
||||||
|
|
||||||
|
|
||||||
|
@foreach ($getData() as $item)
|
||||||
|
@include('filament.tables.columns.multiline.bkm', [
|
||||||
|
'bookmaker_id' => $item->bookmaker_id,
|
||||||
|
'icon' => $item->bookmaker->icon ?? '',
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->gg, 'decimal' => 2])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->ng, 'decimal' => 2])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->margin, 'decimal' => 1])
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
@php
|
||||||
|
$loadData($record, $record->multiline_client);
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.fumetto_dc')
|
||||||
|
|
||||||
|
<div {{ $getExtraAttributeBag() }} class="max-w-80 grid grid-cols-5 grid-rows-4 text-xs gap-0 justify-between text-right"
|
||||||
|
style="width: 225px;">
|
||||||
|
|
||||||
|
|
||||||
|
@foreach ($getData() as $item)
|
||||||
|
@include('filament.tables.columns.multiline.bkm', [
|
||||||
|
'bookmaker_id' => $item->bookmaker_id,
|
||||||
|
'icon' => $item->bookmaker->icon ?? '',
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->over, 'decimal' => 2])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->under, 'decimal' => 2])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->total, 'decimal' => 1])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->margin, 'decimal' => 1])
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
@php
|
||||||
|
$loadData($record, $record->multiline_client);
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.fumetto_dnb')
|
||||||
|
|
||||||
|
<div {{ $getExtraAttributeBag() }} class="max-w-80 grid grid-cols-4 grid-rows-4 text-xs gap-0 justify-between text-right"
|
||||||
|
style="width: 190px;">
|
||||||
|
|
||||||
|
|
||||||
|
@foreach ($getData() as $item)
|
||||||
|
@include('filament.tables.columns.multiline.bkm', [
|
||||||
|
'bookmaker_id' => $item->bookmaker_id,
|
||||||
|
'icon' => $item->bookmaker->icon ?? '',
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->htq, 'decimal' => 2])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->atq, 'decimal' => 2])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', ['odd' => $item->margin, 'decimal' => 1])
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
@@ -2,12 +2,12 @@
|
|||||||
$loadData($record, $record->multiline_client);
|
$loadData($record, $record->multiline_client);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@include('filament.tables.columns.multiline.fumetto')
|
@include('filament.tables.columns.multiline.fumetto_1x2')
|
||||||
|
|
||||||
<div {{ $getExtraAttributeBag() }}
|
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 grid-rows-4 text-xs gap-0 justify-between text-right"
|
||||||
class="max-w-80 grid grid-cols-5 grid-rows-4 text-xs gap-0 justify-between text-right">
|
style="width: 225px;">
|
||||||
|
|
||||||
@foreach ($getMultilines() as $item)
|
@foreach ($getData() as $item)
|
||||||
@include('filament.tables.columns.multiline.bkm', [
|
@include('filament.tables.columns.multiline.bkm', [
|
||||||
'bookmaker_id' => $item->bookmaker_id,
|
'bookmaker_id' => $item->bookmaker_id,
|
||||||
'icon' => $item->bookmaker->icon ?? '',
|
'icon' => $item->bookmaker->icon ?? '',
|
||||||
|
|||||||
@@ -0,0 +1,43 @@
|
|||||||
|
@if ($hasodds())
|
||||||
|
<div x-data="{ message: 'loading..' }" class="mx-3 my-auto">
|
||||||
|
<template x-ref="template">
|
||||||
|
<div class="grid grid-cols-5 grid-rows-5 gap-1 m-5">
|
||||||
|
|
||||||
|
@foreach ($getFumetto() as $item)
|
||||||
|
@include('filament.tables.columns.multiline.bkm', [
|
||||||
|
'bookmaker_id' => $item->bookmaker_id,
|
||||||
|
'icon' => $item->bookmaker->icon ?? '',
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->over,
|
||||||
|
'decimal' => 2,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->under,
|
||||||
|
'decimal' => 2,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->total,
|
||||||
|
'decimal' => 1,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->margin,
|
||||||
|
'decimal' => 1,
|
||||||
|
])
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<x-filament::icon-button icon="heroicon-o-chat-bubble-left-ellipsis" color="gray"
|
||||||
|
x-tooltip.html="{
|
||||||
|
content: () => $refs.template.innerHTML,
|
||||||
|
allowHTML: true,
|
||||||
|
theme: $store.theme,
|
||||||
|
appendTo: $root
|
||||||
|
}" />
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
File renamed without changes.
@@ -0,0 +1,43 @@
|
|||||||
|
@if ($hasodds())
|
||||||
|
<div x-data="{ message: 'loading..' }" class="mx-3 my-auto">
|
||||||
|
<template x-ref="template">
|
||||||
|
<div class="grid grid-cols-5 grid-rows-5 gap-1 m-5">
|
||||||
|
|
||||||
|
@foreach ($getFumetto() as $item)
|
||||||
|
@include('filament.tables.columns.multiline.bkm', [
|
||||||
|
'bookmaker_id' => $item->bookmaker_id,
|
||||||
|
'icon' => $item->bookmaker->icon ?? '',
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->dcx1,
|
||||||
|
'decimal' => 2,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->dc12,
|
||||||
|
'decimal' => 2,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->dcx2,
|
||||||
|
'decimal' => 2,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->margin,
|
||||||
|
'decimal' => 1,
|
||||||
|
])
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<x-filament::icon-button icon="heroicon-o-chat-bubble-left-ellipsis" color="gray"
|
||||||
|
x-tooltip.html="{
|
||||||
|
content: () => $refs.template.innerHTML,
|
||||||
|
allowHTML: true,
|
||||||
|
theme: $store.theme,
|
||||||
|
appendTo: $root
|
||||||
|
}" />
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
@if ($hasodds())
|
||||||
|
<div x-data="{ message: 'loading..' }" class="mx-3 my-auto">
|
||||||
|
<template x-ref="template">
|
||||||
|
<div class="grid grid-cols-4 grid-rows-5 gap-1 m-5">
|
||||||
|
|
||||||
|
@foreach ($getFumetto() as $item)
|
||||||
|
@include('filament.tables.columns.multiline.bkm', [
|
||||||
|
'bookmaker_id' => $item->bookmaker_id,
|
||||||
|
'icon' => $item->bookmaker->icon ?? '',
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->dnb1,
|
||||||
|
'decimal' => 2,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->dnb2,
|
||||||
|
'decimal' => 2,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->margin,
|
||||||
|
'decimal' => 1,
|
||||||
|
])
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<x-filament::icon-button icon="heroicon-o-chat-bubble-left-ellipsis" color="gray"
|
||||||
|
x-tooltip.html="{
|
||||||
|
content: () => $refs.template.innerHTML,
|
||||||
|
allowHTML: true,
|
||||||
|
theme: $store.theme,
|
||||||
|
appendTo: $root
|
||||||
|
}" />
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
@if ($hasodds())
|
||||||
|
<div x-data="{ message: 'loading..' }" class="mx-3 my-auto">
|
||||||
|
<template x-ref="template">
|
||||||
|
<div class="grid grid-cols-4 grid-rows-5 gap-1 m-5">
|
||||||
|
|
||||||
|
@foreach ($getFumetto() as $item)
|
||||||
|
@include('filament.tables.columns.multiline.bkm', [
|
||||||
|
'bookmaker_id' => $item->bookmaker_id,
|
||||||
|
'icon' => $item->bookmaker->icon ?? '',
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->gg,
|
||||||
|
'decimal' => 2,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->ng,
|
||||||
|
'decimal' => 2,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->margin,
|
||||||
|
'decimal' => 1,
|
||||||
|
])
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<x-filament::icon-button icon="heroicon-o-chat-bubble-left-ellipsis" color="gray"
|
||||||
|
x-tooltip.html="{
|
||||||
|
content: () => $refs.template.innerHTML,
|
||||||
|
allowHTML: true,
|
||||||
|
theme: $store.theme,
|
||||||
|
appendTo: $root
|
||||||
|
}" />
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
@if ($hasodds())
|
||||||
|
<div x-data="{ message: 'loading..' }" class="mx-3 my-auto">
|
||||||
|
<template x-ref="template">
|
||||||
|
<div class="grid grid-cols-4 grid-rows-5 gap-1 m-5">
|
||||||
|
|
||||||
|
@foreach ($getFumetto() as $item)
|
||||||
|
@include('filament.tables.columns.multiline.bkm', [
|
||||||
|
'bookmaker_id' => $item->bookmaker_id,
|
||||||
|
'icon' => $item->bookmaker->icon ?? '',
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->htq,
|
||||||
|
'decimal' => 2,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->atq,
|
||||||
|
'decimal' => 2,
|
||||||
|
])
|
||||||
|
|
||||||
|
@include('filament.tables.columns.multiline.odds', [
|
||||||
|
'odd' => $item->margin,
|
||||||
|
'decimal' => 1,
|
||||||
|
])
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<x-filament::icon-button icon="heroicon-o-chat-bubble-left-ellipsis" color="gray"
|
||||||
|
x-tooltip.html="{
|
||||||
|
content: () => $refs.template.innerHTML,
|
||||||
|
allowHTML: true,
|
||||||
|
theme: $store.theme,
|
||||||
|
appendTo: $root
|
||||||
|
}" />
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
@switch($menu)
|
@switch($menu)
|
||||||
@case('1x2')
|
@case('1x2')
|
||||||
<div class="grid grid-cols-6 grid-rows-1 text-xs gap-0 justify-between text-center">
|
<div class="grid grid-cols-6 justify-items-stretch text-center text-xs">
|
||||||
<div></div>
|
<div></div>
|
||||||
<div></div>
|
<div></div>
|
||||||
<div>1</div>
|
<div>1</div>
|
||||||
@@ -11,38 +11,39 @@
|
|||||||
@break
|
@break
|
||||||
|
|
||||||
@case('hc')
|
@case('hc')
|
||||||
<div class="grid grid-cols-5 grid-rows-1 text-xs gap-0 justify-between text-center">
|
@case('tq')
|
||||||
|
<div class="grid grid-cols-5 justify-items-stretch text-center text-xs">
|
||||||
<div></div>
|
<div></div>
|
||||||
<div></div>
|
<div></div>
|
||||||
<div>Home</div>
|
<div>H</div>
|
||||||
<div>Away</div>
|
<div>A</div>
|
||||||
<div>M</div>
|
<div>M</div>
|
||||||
</div>
|
</div>
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@case('dc')
|
@case('dc')
|
||||||
<div class="grid grid-cols-6 grid-rows-1 text-xs gap-0 justify-between text-center">
|
<div class="grid grid-cols-6 justify-items-stretch text-center text-xs">
|
||||||
<div></div>
|
<div></div>
|
||||||
<div></div>
|
<div></div>
|
||||||
<div>1X</div>
|
<div>1X</div>
|
||||||
<div>12</div>
|
<div>12</div>
|
||||||
<div>2X</div>
|
<div>X2</div>
|
||||||
<div>M</div>
|
<div>M</div>
|
||||||
</div>
|
</div>
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@case('dnb')
|
@case('dnb')
|
||||||
<div class="grid grid-cols-5 grid-rows-1 text-xs gap-0 justify-between text-center">
|
<div class="grid grid-cols-5 justify-items-stretch text-center text-xs">
|
||||||
<div></div>
|
<div></div>
|
||||||
<div></div>
|
<div></div>
|
||||||
<div>DNB 1</div>
|
<div>D1</div>
|
||||||
<div>DNB 2</div>
|
<div>D2</div>
|
||||||
<div>M</div>
|
<div>M</div>
|
||||||
</div>
|
</div>
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@case('gg')
|
@case('gg')
|
||||||
<div class="grid grid-cols-5 grid-rows-1 text-xs gap-0 justify-between text-center">
|
<div class="grid grid-cols-5 justify-items-stretch text-center text-xs">
|
||||||
<div></div>
|
<div></div>
|
||||||
<div></div>
|
<div></div>
|
||||||
<div>GG</div>
|
<div>GG</div>
|
||||||
@@ -52,7 +53,7 @@
|
|||||||
@break
|
@break
|
||||||
|
|
||||||
@case('ou')
|
@case('ou')
|
||||||
<div class="grid grid-cols-6 grid-rows-1 text-xs gap-0 justify-between text-center">
|
<div class="grid grid-cols-6 justify-items-stretch text-center text-xs">
|
||||||
<div></div>
|
<div></div>
|
||||||
<div></div>
|
<div></div>
|
||||||
<div>O</div>
|
<div>O</div>
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
@php
|
|
||||||
use App\Utilities\OddsFormatting;
|
|
||||||
@endphp
|
|
||||||
|
|
||||||
<div class="h-4 mb-0.5 ml-0.5 border border-white">
|
<div class="h-4 mb-0.5 ml-0.5 border border-white">
|
||||||
|
|
||||||
@if (isset($odd))
|
@if (isset($odd))
|
||||||
{{ OddsFormatting::get($odd, $decimal) }}
|
{{ number_format($odd, $decimal) }}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
Reference in new issue
Block a user