diff --git a/app/Console/Commands/Grapper/Betsapi/Bet365.php b/app/Console/Commands/Grapper/Betsapi/Bet365.php index c728054f..09051da4 100644 --- a/app/Console/Commands/Grapper/Betsapi/Bet365.php +++ b/app/Console/Commands/Grapper/Betsapi/Bet365.php @@ -111,6 +111,9 @@ class Bet365 $odds['over'] = $offer['goals_over_under']['odds'][0]['odds'] ?? 1; $odds['under'] = $offer['goals_over_under']['odds'][1]['odds'] ?? 1; $odds['margin'] = (float) Margin::calculate($odds, 1); + if ($base['sport_id'] == 1) { + $odds['active_spread'] = 1; + } if ($offer['goals_over_under']['odds'][1]['name'] == '2.5') { OddsTotal::updateOrCreate([ diff --git a/app/Console/Commands/Grapper/Logifuture/Soccer.php b/app/Console/Commands/Grapper/Logifuture/Soccer.php index 939641de..0640e334 100644 --- a/app/Console/Commands/Grapper/Logifuture/Soccer.php +++ b/app/Console/Commands/Grapper/Logifuture/Soccer.php @@ -91,6 +91,7 @@ class Soccer $_total['margin'] = (float) Margin::calculate($_total, 1); $_total['total'] = 2.5; $_total['starttime'] = $event['starttime']; + $_total['active_spread'] = 1; OddsTotal::updateOrCreate([ 'event_id' => $event['id'], diff --git a/app/Console/Commands/Grapper/Magloo/Odds.php b/app/Console/Commands/Grapper/Magloo/Odds.php index 39cbd184..6f06804e 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds.php +++ b/app/Console/Commands/Grapper/Magloo/Odds.php @@ -88,6 +88,10 @@ class Odds 'bookmaker_id' => $bookmaker_id, ], ['in_feed' => 1, 'bmoid' => $base['bmoid']]); + // if ($event_id == 13913478) { + // dd($match['M']); + // } + foreach ($match['M'] as $magloo_bettype_id => $value) { switch ($magloo_bettype_id) { case 1: @@ -105,6 +109,7 @@ class Odds ], $base + $odds); break; + case 2: // to qalify $odds = []; @@ -134,7 +139,7 @@ class Odds break; - case 10: + case 27: // ggng $odds = []; $odds['gg'] = $value['static'][74] ?? 1; @@ -149,6 +154,7 @@ class Odds break; case 16: + case 2000: // points $odds = FilterHandicap::get($value); $odds['starttime'] = $starttime; @@ -159,15 +165,6 @@ class Odds ], $base + $odds); break; - case 2000: - // points qt - $odds = FilterHandicap::get($value); - OddsPoint::updateOrCreate([ - 'event_id' => $event_id, - 'bookmaker_id' => $bookmaker_id, - ], $base + $odds); - break; - case 2025: // points qt $odds = FilterHandicapQ1::get($value); @@ -176,15 +173,20 @@ class Odds 'bookmaker_id' => $bookmaker_id, ], $base + $odds); break; + case 17: case 2002: // totals $odds = FilterTotals::get($value, $sport_id); + if ($base['sport_id'] == 1) { + $odds['active_spread'] = 1; + } OddsTotal::updateOrCreate([ 'event_id' => $event_id, 'bookmaker_id' => $bookmaker_id, ], $base + $odds); break; + case 2012: // totals qt $odds = FilterTotalsQ1::get($value, $sport_id); diff --git a/resources/views/filament/tables/columns/column-total.blade.php b/resources/views/filament/tables/columns/column-total.blade.php index aee4e8f8..f0b39d69 100644 --- a/resources/views/filament/tables/columns/column-total.blade.php +++ b/resources/views/filament/tables/columns/column-total.blade.php @@ -1,6 +1,6 @@ @php $loadData($record); - $act = $getAct(); + $act = $getAct(); @endphp @if ($hasData()) diff --git a/resources/views/filament/tables/columns/column_3way.blade.php b/resources/views/filament/tables/columns/column_3way.blade.php index 0806b511..c5431598 100644 --- a/resources/views/filament/tables/columns/column_3way.blade.php +++ b/resources/views/filament/tables/columns/column_3way.blade.php @@ -14,7 +14,6 @@ @foreach ($getBookmaker() as $bookmaker_id) @foreach ($record->odds_3ways as $item) @if ($item->bookmaker_id == $bookmaker_id) - @include('filament.tables.columns.multiline.bkm', [ 'bookmaker_id' => $item->bookmaker_id, 'icon' => $item->bookmaker->icon ?? '', diff --git a/storage/app/public/bookmaker-icons/logifutur-col.png b/storage/app/public/bookmaker-icons/logifutur-col.png index 198de3b6..dea56e7a 100644 Binary files a/storage/app/public/bookmaker-icons/logifutur-col.png and b/storage/app/public/bookmaker-icons/logifutur-col.png differ diff --git a/storage/app/public/bookmaker-icons/logifutur-nig.png b/storage/app/public/bookmaker-icons/logifutur-nig.png index e939c884..93e979b7 100644 Binary files a/storage/app/public/bookmaker-icons/logifutur-nig.png and b/storage/app/public/bookmaker-icons/logifutur-nig.png differ