


<?php $__env->startSection('head'); ?>
    <script type="text/javascript">
        $(function() {
            $("#goto_sitemap_button").bind("click", function(e) {
                e.preventDefault();

                window.location = $("#sitemap_url").val();
            });
        });
    </script>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('content'); ?>

    <?php echo HTML::widgetBox([
            'name' => trans('Sitemap::common.select_sitemap'),
            'icon' => 'icon-sitemap'
        ]
    ); ?>


            <div class="row v-offset-top-4"></div>

            <div class="col-xs-9">
                <select id="sitemap_url" name="sitemap_url" class="form-control input-lg">
                    <?php foreach($sitemaps as $sitemap): ?>
                        <option value="<?php echo route('backend_sitemap_items', ['id' => $sitemap->core_sm_id]); ?>"><?php echo $sitemap->core_sm_name; ?></option>
                    <?php endforeach; ?>
                </select>
            </div>

            <div class="col-xs-3">
                <button id="goto_sitemap_button" class="btn btn-lg btn-primary btn-block no-margin"><?php echo trans('GlobalTranslations::common.go_to'); ?></button>
            </div>

            <div class="clearfix"></div>
            <div class="v-offset-top-4"></div>

    <?php echo HTML::widgetBox(false); ?>


<?php $__env->stopSection(); ?>
<?php echo $__env->make('Backend::layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>