event filter wip
This commit is contained in:
1 parent
abfe5882cb
commit
988a148850
9 files changed
+120
-123
No files matched your search
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
namespace App\Actions;
|
||||
|
||||
use App\Models\Multiline;
|
||||
|
||||
class MultilineGenerator
|
||||
{
|
||||
public static function run()
|
||||
{
|
||||
|
||||
// odds_2ways
|
||||
// odds_3ways
|
||||
// odds_dc
|
||||
// odds_dnb
|
||||
// odds_ggng
|
||||
// odds_handicaps
|
||||
// odds_qualify
|
||||
// odds_totals
|
||||
|
||||
$default = [];
|
||||
$default[1] = [
|
||||
'bettypes' => [1, 16, 3, 4, 5],
|
||||
];
|
||||
|
||||
$multilines = Multiline::where('client_id', auth()->user()->client_id)->get();
|
||||
dd($multilines);
|
||||
|
||||
foreach ($slots as $id => $slot) {
|
||||
$open = true;
|
||||
foreach ($data as $item) {
|
||||
if ($slot->bookmaker_id == $item->bookmaker_id) {
|
||||
$multilines[$id] = $item;
|
||||
$open = false;
|
||||
}
|
||||
}
|
||||
if ($open) {
|
||||
$multilines[$id] = $slot;
|
||||
}
|
||||
}
|
||||
|
||||
return $multilines;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user