@extends('layouts.main') @section('page-specific-styles') @endsection @section('content')
@forelse($sport_matches as $sport_match) @empty @endforelse
Time Matches 1
{{ 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) @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 @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 @foreach($first_teams as $key => $first_team) @endforeach @foreach($second_teams as $key => $second_team) @endforeach
{{ $bookmark->title }}
Team{{ $name }}
{{ $first_teams[0]->name }} {{ $first_team->price }}
{{ $second_teams[0]->name }} {{ $second_team->price }}
@endforeach
No Sports
@endsection @section('page-specific-scripts') @endsection