<?php $__env->startSection('content'); ?>
    <div class="row gy-5 gx-lg-5 align-items-center">
        <div class="col-lg-6">
            <div class="game--card">
                <div class="headtail-body">
                    <div class="wheel-wrapper">
                        <div class="arrow text-center">
                            <img src="<?php echo e(asset($activeTemplateTrue . 'images/play/down.png')); ?>" height="50" width="50">
                        </div>
                        <div class="wheel the_wheel text-center">
                            <canvas class="w-100" id="canvas" width="434" height="434">
                                <p class="text-white" align="center"><?php echo app('translator')->get("Sorry, your browser doesn't support canvas. Please try another."); ?></p>
                            </canvas>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-lg-6">
            <div class="headtail-wrapper">
                <h4 class="game-contet-title">
                    <?php echo e($isDemo ? trans('Demo Balance:') : trans('Current Balance:')); ?>

                    <span class="text bal"><?php echo e(showAmount($balance, currencyFormat: false)); ?></span>
                    <?php echo e(__(gs('cur_text'))); ?>

                </h4>
                <form id="game" method="post">
                    <?php echo csrf_field(); ?>
                    <div class="form-group">
                        <div class="input-group">
                            <span class="input-group-text"><?php echo e(gs('cur_sym')); ?></span>
                            <input type="number" step="any" class="form-control form--control"
                                placeholder="<?php echo app('translator')->get('Enter amount'); ?>" name="invest" value="<?php echo e(old('invest')); ?>">
                            <button type="button" class="input-group-text minmax-btn minBtn"><?php echo app('translator')->get('Min'); ?></button>
                            <button type="button" class="input-group-text minmax-btn maxBtn"><?php echo app('translator')->get('Max'); ?></button>
                        </div>
                        <small class="fw-light mt-3 d-inline-block input-inner-note">
                            <i class="fas fa-info-circle mr-2"></i>
                            <?php echo app('translator')->get('Minimum'); ?>: <?php echo e(showAmount($game->min_limit)); ?>

                            |
                            <?php echo app('translator')->get('Maximum'); ?>: <?php echo e(showAmount($game->max_limit)); ?>

                        </small>
                    </div>

                    <div class="headtail-slect">
                        <div class="headtail-slect__box game-select-box" data-value="1">
                            <div class="headtail-slect__image">
                                <img src="<?php echo e(asset($activeTemplateTrue . 'images/games/dc_01.png')); ?>" alt="">
                            </div>
                        </div>
                        <div class="headtail-slect__box game-select-box" data-value="2">
                            <div class="headtail-slect__image">
                                <img src="<?php echo e(asset($activeTemplateTrue . 'images/games/dc_02.png')); ?>" alt="">
                            </div>
                        </div>

                        <div class="headtail-slect__box game-select-box" data-value="5">
                            <div class="headtail-slect__image">
                                <img src="<?php echo e(asset($activeTemplateTrue . 'images/games/dc_05.png')); ?>" alt="">
                            </div>
                        </div>
                        <div class="headtail-slect__box game-select-box" data-value="10">
                            <div class="headtail-slect__image">
                                <img src="<?php echo e(asset($activeTemplateTrue . 'images/games/dc_10.png')); ?>" alt="">
                            </div>
                        </div>
                        <div class="headtail-slect__box game-select-box" data-value="20">
                            <div class="headtail-slect__image">
                                <img src="<?php echo e(asset($activeTemplateTrue . 'images/games/dc_20.png')); ?>" alt="">
                            </div>
                        </div>
                        <div class="headtail-slect__box game-select-box" data-value="40">
                            <div class="headtail-slect__image">
                                <img src="<?php echo e(asset($activeTemplateTrue . 'images/games/dc_40.png')); ?>" alt="">
                            </div>
                        </div>
                    </div>

                    <div class="form-submit game-playbtn">
                        <button type="submit" id="playBtn" class="btn btn--gradient w-100"><?php echo app('translator')->get('Play Now'); ?></button>
                        <button class="btn btn--gradient w-100 d-none" id="reSpinBtn" type="button"><?php echo app('translator')->get('Re-spin'); ?></button>
                    </div>
                    <div class="d-flex justify-content-between align-items-center mt-3 w-100">
                        <button type="button" class="d-block text-white text-center mx-auto" data-bs-toggle="modal"
                            data-bs-target="#exampleModalCenter"><i class="fas fa-info-circle mr-2"></i>
                            <?php echo app('translator')->get('Game Instruction'); ?>
                        </button>
                        <button type="button" class="sound--btn audioBtn">
                            <i class="fas fa-volume-up"></i>
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <div class="modal custom--modal fade" id="exampleModalCenter">
        <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
            <div class="modal-content section--bg">
                <div class="modal-header">
                    <h5 class="modal-title" id="exampleModalLongTitle"><?php echo app('translator')->get('Game Rule'); ?></h5>
                    <span class="close" data-bs-dismiss="modal" type="button" aria-label="Close">
                        <i class="las la-times"></i>
                    </span>
                </div>
                <div class="modal-body">
                    <?php echo $game->instruction ?>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('script-lib'); ?>
    <script src="<?php echo e(asset('assets/global/js/soundControl.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/global/js/game/TweenMax.min.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/global/js/game/Winwheel.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/global/js/game/dreamCatcher.js')); ?>"></script>
<?php $__env->stopPush(); ?>

<?php $__env->startPush('script'); ?>
    <script>
        "use strict";

        investField = $("[name=invest]");
        minLimit = Number("<?php echo e($game->min_limit); ?>");
        maxLimit = Number("<?php echo e($game->max_limit); ?>");
        currency = "<?php echo e(gs('cur_text')); ?>";
        audioAssetPath = `<?php echo e(asset('assets/audio')); ?>`;
        investUrl = "<?php echo e(route('user.play.invest', [$game->alias, @$isDemo])); ?>";
        endUrl = "<?php echo e(route('user.play.end', [$game->alias, @$isDemo])); ?>";
    </script>
<?php $__env->stopPush(); ?>

<?php $__env->startPush('style'); ?>
    <style type="text/css">
        .headtail-body {
            display: flex;
            justify-content: center;
        }

        .the_wheel {
            max-width: 600px !important;
        }

        .headtail-slect {
            justify-content: space-around;
            gap: 10px;
        }

        .headtail-slect__image {
            max-width: 80px;
            overflow: hidden;
            border-radius: inherit;
        }

        .headtail-slect__box {
            max-width: 150px;
            height: 100px;
            width: unset !important;
            padding: 20px;
            overflow: hidden;
        }

        .headtail-slect {
            align-items: center;
            margin-block: 40px;
            cursor: pointer;
            grid-template-columns: repeat(3, 1fr);
            display: grid;
            grid-gap: 20px;
        }

        @media (max-width:767px) {
            .headtail-slect__box {
                max-width: 120px;
                height: 80px;
                width: unset !important;
            }

            .headtail-slect__image {
                font-size: 13px;
            }
        }

        @media (max-width:575px) {

            .headtail-slect__box {
                max-width: 130px;
                height: 80px;
                width: unset !important;
            }

            .headtail-slect__image {
                font-size: 13px;
            }
        }
    </style>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('Template::layouts.master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/u969753196/domains/zynexsoftware.shop/public_html/casino/core/resources/views/templates/sunfyre/user/games/dream_catcher.blade.php ENDPATH**/ ?>