<?php $__env->startSection('content'); ?>
<div class="col-md-12">
    <!------- Poll Page  ---------->
    <div class="clearfix">&nbsp;</div>
    <div class="clearfix">&nbsp;</div>
    <div class="clearfix">&nbsp;</div>
    <div class="clearfix">&nbsp;</div>

    <div class="clearfix">&nbsp;</div>
    <div class="clearfix">&nbsp;</div>
    <div class="row">
        <div class="col-md-1"></div>
        <div class="col-md-10">
            <div class="col-md-9">
                <?php if(Session::get('message')): ?>
                <div class="alert alert-danger animated bounce" role="alert">
                    <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
                    <span class="sr-only">Error:</span>
                    <?php echo Session::get('message'); ?>
                </div>
                <?php endif; ?>


                <div class="col-md-12 animated fadeIn bg-default poll-content">
                    <?php if(!empty($public_user_quiz)): ?>
                    <h4><i class="fa fa-check-circle-o" style="color:green"></i> Thank you ! You have successfully completed your quiz ! </h4>
                    <h5> To see full details please login ! </h5>

                    <?php if(!isset(Auth::user()->fbid)): ?>
                    <div class="clearfix load-content">&nbsp;</div>
                    <center>
                        <a href="javascript:facebookLoginOnPage()" class="btn btn-facebook btn-md">
                            <i class="fa fa-facebook"></i> Connecting with <strong> Facebook </strong>
                        </a>
                    </center>
                    <?php else: ?>

                    <h3>True Ans : <?php echo $result['true_ans']; ?></h3>
                    <h3>False Ans : <?php echo $result['false_ans']; ?></h3>

                    <?php foreach($full_result as $r): ?>
                    <h4 class="ques-row"> <?php echo ($r->your_ans==$r->true_ans)?'<i class="fa fa-check-circle" style="color:green"></i>':'<i class="fa fa-times-circle" style="color:red"></i>'; ?> &nbsp;  &nbsp; <?php echo $r->text; ?></h4>
                    <h5>Your Ans: <?php echo $r->your_ans; ?></h5>
                    <h5>Correct Ans: <?php echo $r->true_ans; ?></h5>
                    <?php endforeach; ?>
                    <?php endif; ?>


                    <div class="clearfix load-content">&nbsp;</div>
                    <div id="more"></div>
                    <button class="btn btn-large btn-info btn-facebook btn-block share" id="share" short_url="<?php echo url(); ?>"><i class="fa fa-facebook"></i> Share </button>

                </div>
                <?php endif; ?>
            </div>

            <div class="col-md-3 bg-default">
                <?php echo $__env->make('user.rightbar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            </div>
        </div>
        <div class="col-md-1"></div>
    </div>
    <!------- // Poll Page  ---------->
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('user.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>