@props([ 'flatOdds' => null, 'marketId' => 1, 'showLabels' => true ]) @if($flatOdds && $flatOdds->data) @foreach($flatOdds->data as $market) @if($market->market_id == $marketId) @foreach($market->odds as $index => $odd) @php $label = ''; if ($showLabels) { if ($index === 0) $label = 'Hazai: '; elseif ($index === 1) $label = 'Döntetlen: '; elseif ($index === 2) $label = 'Vendég: '; } $isWinning = isset($odd->winning) && $odd->winning; @endphp