wip
This commit is contained in:
1 parent
407f773dec
commit
0a09953bdd
2 files changed
+3
-4
No files matched your search
@@ -389,7 +389,7 @@ class PlayerPropsDrop extends Widget
|
|||||||
$team_home_away = 'away';
|
$team_home_away = 'away';
|
||||||
}
|
}
|
||||||
|
|
||||||
$player_totals = SofaScorePlayerPerSeason::with('details')->where('total_min', '>', 0)->where('season', 'last_180_days')->where('average_min', '>', 0)->where('ss_team_id', $team_id)->get();
|
$player_totals = SofaScorePlayerPerSeason::with('details')->where('total_min', '>', 0)->where('season', 'last_180_days')->where('ss_team_id', $team_id)->get();
|
||||||
|
|
||||||
$count_player = 0;
|
$count_player = 0;
|
||||||
$tmp = [];
|
$tmp = [];
|
||||||
@@ -681,7 +681,7 @@ class PlayerPropsDrop extends Widget
|
|||||||
|
|
||||||
public function prepareLineUp()
|
public function prepareLineUp()
|
||||||
{
|
{
|
||||||
$players = SofaScorePlayerPerSeason::with('details')->where('season', 'last_180_days')->where('ss_team_id', $this->team_id)->where('average_min', '>', 0)->get();
|
$players = SofaScorePlayerPerSeason::with('details')->where('total_min', '>', 0)->where('season', 'last_180_days')->where('ss_team_id', $this->team_id)->get();
|
||||||
$arr = collect();
|
$arr = collect();
|
||||||
foreach ($players as $value) {
|
foreach ($players as $value) {
|
||||||
if ($value->details->player_name == 'Thomas de Martis') {
|
if ($value->details->player_name == 'Thomas de Martis') {
|
||||||
|
|||||||
@@ -12,8 +12,7 @@ class PlayerCalculator extends Component
|
|||||||
{
|
{
|
||||||
$positions_map = LoadPositions::load();
|
$positions_map = LoadPositions::load();
|
||||||
|
|
||||||
// $player = SofaScorePlayerPerSeason::with('details')->where('season', '=', 'total')->where('ss_team_id', '=', $team_id)->get();
|
$player = SofaScorePlayerPerSeason::with('details')->where('total_min', '>', 0)->where('season', 'last_180_days')->where('ss_team_id', $team_id)->get();
|
||||||
$player = SofaScorePlayerPerSeason::with('details')->where('total_min', '>', 0)->where('season', 'last_180_days')->where('average_min', '>', 0)->where('ss_team_id', $team_id)->get();
|
|
||||||
$result = [];
|
$result = [];
|
||||||
foreach ($player as $val) {
|
foreach ($player as $val) {
|
||||||
if ($val->details != null && $val->details->is_active) {
|
if ($val->details != null && $val->details->is_active) {
|
||||||
|
|||||||
Reference in new issue
Block a user