| {{ date("Y-m-d h:i a", strtotime($sport_match->commence_time)) }} |
{{ $sport_match->home_team }} V {{ $sport_match->away_team }} ({{ $sport_match->sport_title }}) |
@foreach($sport_match->bookmakers as $bookmark)
| {{ $bookmark->title }} |
| Team |
@php $first_teams = array();$second_teams = array() @endphp
@foreach($bookmark->markets as $market)
@php
$name = $market->key;
if($market->key == "h2h") {
$name = "Back";
}
if($market->key == "h2h_lay") {
$name = "Lay";
}
@endphp
{{ $name }} |
@foreach($market->outcomes as $key => $outcome)
@php
$key == 0 ? array_push($first_teams,$outcome) : array();
$key == 1 ? array_push($second_teams,$outcome) : array();
@endphp
@endforeach
@endforeach
| {{ $first_teams[0]->name }} |
@foreach($first_teams as $key => $first_team)
{{ $first_team->price }}
|
@endforeach
| {{ $second_teams[0]->name }} |
@foreach($second_teams as $key => $second_team)
{{ $second_team->price }}
|
@endforeach
@endforeach
|
@empty