@props([ 'matches', 'tableId', 'title' => 'Meccsek', 'type' => 'past', // 'past', 'future', 'overall' 'filterType' => 'one-zero', // 'one-zero', 'one-one', 'two-one', 'draw', 'overall' 'showStreak' => true, 'showResult' => true, 'showCorrectScoreOdds' => true, 'correctScoreLabel' => '1 1:0', 'correctScoreLabels' => null // For multiple labels (e.g., 2-1 filter: ['1 2:1', '2 1:2']) ]) @php $isPast = $type === 'past'; $isOverall = $filterType === 'overall'; // Use labels array if provided, otherwise create array from single label $labelsArray = $correctScoreLabels ?? [$correctScoreLabel]; // Create header text from labels $headerLabels = array_map(function($label) { return str_replace(['1 ', '2 ', 'Draw '], '', $label); }, $labelsArray); $headerText = implode(' / ', $headerLabels) . ' Odds'; @endphp
{{ $title }}
@if($isPast && $showStreak)
@endif
@if(!$isOverall) @if($showStreak && $isPast) @endif @if($showResult && $isPast) @endif @else @if($isPast) @endif @endif @if(!$isOverall) @if($showCorrectScoreOdds) @endif @else @if($showStreak && $isPast) @endif @endif @foreach($matches as $match) @if($isOverall) @else @endif @endforeach
Hazai csapat Vendég csapatMegfelelt?SorozatVégeredményVégeredményForduló Meccs kezdeteOdds{{ $headerText }}Hanyadik a sorozatban?1:1 Szűrés 1:0 Szűrés 2:1 Szűrés
{{ $slot ?? '' }}