<style>
    /* .grid-market .outcome.active, .game-event-market__list .outcome.active, .coupon-market .game-event-market__line .outcome.active {
        background: var(--text-active) !important;
        color: black !important;
    } */
    odd-list__option oddBtn{
        width: 80% !important;
    }
</style>
<?php $__env->startSection('bet'); ?>
    <?php
        $optionsId = collect(session()->get('bets'))->pluck('option_id')->toArray();
    ?>

    <div class="odd-list pt-0">
        <div class="row gx-0 pd-lg-15 gx-lg-3 gy-3">
            <div class="col-12">
                <div class="odd-list__head">
                    <div class="odd-list__team">
                        <div class="odd-list__team-name"><?php echo e(__($game->teamOne->name)); ?></div>
                        <div class="odd-list__team-img">
                            <img class="odd-list__team-img-is" src="<?php echo e($game->teamOne->teamImage()); ?>" alt="image" />
                        </div>
                    </div>

                    <div class="odd-list__team-divide"><?php echo app('translator')->get('VS'); ?></div>

                    <div class="odd-list__team justify-content-end">
                        <div class="odd-list__team-img">
                            <img class="odd-list__team-img-is" src="<?php echo e($game->teamTwo->teamImage()); ?>" alt="image" />
                        </div>
                        <div class="odd-list__team-name"><?php echo e(__($game->teamTwo->name)); ?></div>
                    </div>
                </div>

                <div class="odd-list__body">
                    <div class="odd-list__body-content" style="background: var(--body-main) ">
                        <div class="odd-list__title"><?php echo app('translator')->get('Markets'); ?></div>
                        <?php $__empty_1 = true; $__currentLoopData = $game->questions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $question): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <div class="accordion accordion--odd" style="background: var(--body-main)">
                                <div class="accordion-item  <?php if($question->locked): ?> locked <?php endif; ?>"
                                    style="background: var(--body-main) game-event__market-wrapper game-event__market-transition-enter-done">
                                    <h2 class="accordion-header" style="background: var(--body-main)">
                                        <button class="accordion-button" type="button" data-bs-toggle="collapse"
                                            data-bs-target="#question-<?php echo e($question->id); ?>" aria-expanded="true">
                                            <?php echo e(__($question->title)); ?>

                                        </button>
                                    </h2>


                                    <div
                                        class="game-event-market__list-wrapper accordion-collapse collapse show"id="question-<?php echo e($question->id); ?>">
                                        <div class="game-event-market__list">
                                            <div class="game-event__market">
                                                <div class="game-event-market__line-group">
                                                    <ul class="list list--row odd-list__options game-event-market__line">
                                                        <?php $__empty_2 = true; $__currentLoopData = $question->options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_2 = false; ?>
                                                            <li>
                                                                <button
                                                                    class="outcome equal _101 odd-list__option oddBtn <?php if(in_array($option->id, $optionsId)): ?> active <?php endif; ?> <?php if($option->locked): ?> locked <?php endif; ?>"
                                                                    type="button" data-option_id="<?php echo e($option->id); ?>"
                                                                    data-result-status="" style="order: 101;">
                                                                    <span
                                                                        class="outcome__status odd-list__option-text "><?php echo e(__($option->name)); ?></span>
                                                                    <span
                                                                        class="outcome__number odd-list__option-ratio"><?php echo e(rateData($option->odds)); ?></span>
                                                                </button>
                                                            </li>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_2): ?>
                                                            <small class="text-muted"> <?php echo app('translator')->get('No odds available for now'); ?></small>
                                                        <?php endif; ?>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    
                                </div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <div class="empty-message mt-3">
                                <img class="img-fluid" src="<?php echo e(asset($activeTemplateTrue . '/images/empty_message.png')); ?>"
                                    alt="<?php echo app('translator')->get('image'); ?>">
                                <p><?php echo app('translator')->get('No markets available for now'); ?></p>
                            </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make($activeTemplate . 'layouts.bet', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\Laravel\bet\core\resources\views/templates/basic/markets.blade.php ENDPATH**/ ?>