@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
| Hazai csapat | Vendég csapat | @if(!$isOverall)Megfelelt? | @if($showStreak && $isPast)Sorozat | @endif @if($showResult && $isPast)Végeredmény | @endif @else @if($isPast)Végeredmény | @endif @endifForduló | Meccs kezdete | @if(!$isOverall)Odds | @if($showCorrectScoreOdds){{ $headerText }} | @endif @else @if($showStreak && $isPast)Hanyadik a sorozatban? | @endif1:1 Szűrés | 1:0 Szűrés | 2:1 Szűrés | @endif
|---|