<?php $__env->startSection('content'); ?>
<?php if (!empty($data)): ?>
<div class="col-md-2"></div>
<!--- MAIN BODY--->
<div class="col-md-8">
    <?php echo $__env->make('user.user-profile', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> <!-- Include user profile blade file ---->
    <div class="clearfix">&nbsp;</div>
    <?php if(Input::get('error_message')): ?>
    <center> <h4 class="text-danger"><i class="fa fa-facebook-square"></i> <?php echo Input::get('error_message'); ?></h4> </center>
    <?php endif; ?>
    <div class="bg-default animated flipInY">
        <?php if(Input::get('share')>0 && Input::get('error_code')==''): ?>
        <h4>Correct Ans : <?php echo $result['correct']; ?></h4>
        <h4>Incorrect Ans : <?php echo $result['incorrect']; ?></h4>
        <h4>Success : <?php echo $result['parcent']; ?>%</h4>
        <h4>Time : <?php echo $result['time']; ?></h4>
        <!------- Result table ------->
        <table class="table table-hover">
            <tr>
                <th> Quiz </th>
                <th> Your Answer </th>
                <th> Result </th>
            </tr>
            <?php foreach($result['details'] as $r): ?>
            <tr>
                <td> <?php echo $r->text; ?>  </td>
                <td> <?php echo $r->your_ans; ?></td>
                <td> <?php if($r->true_ans==$r->your_ans): ?><i class="fa fa-check text-success"></i> <?php else: ?> <i class="fa fa-times text-danger"></i> <?php endif; ?> </td>
            </tr>
            <?php endforeach; ?>
        </table>
        <!------//- Result table end------->
        <?php else: ?>
        <center>
            <h4 class="text-success"><i class="fa fa-check-circle"></i> You have successfully completed the quiz !</h4>
            <h4> To see the complete result please share it once  !</h4>
        </center>
        <?php endif; ?>
        <br>
        <center><a class="btn btn-primary btn-sm " href="<?php echo $share; ?>"><i class="fa fa-facebook"></i> Share Now </a></center>
        <div class="clearfix">&nbsp;</div>
    </div>
    <hr>
</div>
<!--- MAIN BODY END --->
<div class="col-md-2"></div>
<?php endif; ?>
<?php $__env->stopSection(); ?>

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