<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['marketType', 'game', 'betPlacedIds' => []]));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter((['marketType', 'game', 'betPlacedIds' => []]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars); ?>

<?php
    $market = $game->markets->firstWhere('market_type', $marketType);
    $nameOne = $marketType === 'totals' ? 'Over' : $game->teamOne?->name ?? 'N/A';
    $nameTwo = $marketType === 'totals' ? 'Under' : $game->teamTwo?->name ?? 'N/A';
    $outcomeOne = $market?->outcomes->filter(fn($outcome) => strcasecmp($outcome->name, $nameOne) === 0)->first();
    $outcomeTwo = $market?->outcomes->filter(fn($outcome) => strcasecmp($outcome->name, $nameTwo) === 0)->first();
    $drawOutcome = $market?->outcomes->filter(fn($outcome) => strcasecmp($outcome->name, 'Draw') === 0)->first();
?>


<div class="sports-card-inner">
    <div class="sports-card-top-inner sports-card-heading">
        <span class="team-select-title"><?php echo e($market == 'totals' ? 'O' : 1); ?></span>
        <span class="team-select-title">
            <?php if($marketType == 'h2h'): ?>
                -
            <?php elseif($marketType == 'h2h_3way'): ?>
                x
            <?php elseif($marketType == 'spreads'): ?>
                <?php echo app('translator')->get('Spreads'); ?>
            <?php elseif($marketType == 'totals'): ?>
                <?php echo app('translator')->get('Total'); ?>
            <?php endif; ?>
        </span>
        <span class="team-select-title"><?php echo e($market == 'totals' ? 'U' : 2); ?></span>
    </div>

    <div class="sports-card-body">
        <div class="option-odd-lists">
            <?php if (isset($component)) { $__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.odds-button','data' => ['outcome' => $outcomeOne,'marketIsLocked' => @$market->locked]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('frontend.odds-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['outcome' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($outcomeOne),'marketIsLocked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(@$market->locked)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd)): ?>
<?php $attributes = $__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd; ?>
<?php unset($__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd)): ?>
<?php $component = $__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd; ?>
<?php unset($__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd); ?>
<?php endif; ?>

            <?php if($marketType == 'h2h' || !$market): ?>
                <?php if (isset($component)) { $__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.odds-button','data' => ['marketIsLocked' => @$market->locked]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('frontend.odds-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['marketIsLocked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(@$market->locked)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd)): ?>
<?php $attributes = $__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd; ?>
<?php unset($__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd)): ?>
<?php $component = $__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd; ?>
<?php unset($__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd); ?>
<?php endif; ?>
            <?php elseif($marketType == 'h2h_3way'): ?>
                <?php if (isset($component)) { $__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.odds-button','data' => ['outcome' => $drawOutcome,'marketIsLocked' => @$market->locked]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('frontend.odds-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['outcome' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($drawOutcome),'marketIsLocked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(@$market->locked)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd)): ?>
<?php $attributes = $__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd; ?>
<?php unset($__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd)): ?>
<?php $component = $__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd; ?>
<?php unset($__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd); ?>
<?php endif; ?>
            <?php elseif($marketType == 'spreads'): ?>
                <div class="option-odd-list__item">
                    <span class="point"><?php echo e(formattedSpreadsPoint(@$outcomeOne->point, @$outcomeTwo->point)); ?></span>
                </div>
            <?php elseif($marketType == 'totals'): ?>
                <div class="option-odd-list__item">
                    <span class="point"><?php echo e($outcomeOne->point); ?></span>
                </div>
            <?php endif; ?>

            <?php if (isset($component)) { $__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.odds-button','data' => ['outcome' => $outcomeTwo,'marketIsLocked' => @$market->locked]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('frontend.odds-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['outcome' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($outcomeTwo),'marketIsLocked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(@$market->locked)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd)): ?>
<?php $attributes = $__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd; ?>
<?php unset($__attributesOriginald71f8655bdaaebdbc1fa6cb0f7f551bd); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd)): ?>
<?php $component = $__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd; ?>
<?php unset($__componentOriginald71f8655bdaaebdbc1fa6cb0f7f551bd); ?>
<?php endif; ?>
        </div>
    </div>
</div>
<?php /**PATH /home/ugurwpum/public_html/bet4.cashrall.com/core/resources/views/components/frontend/odds-list.blade.php ENDPATH**/ ?>