@extends('user.master')
@section('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">
                @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>
                    {{Session::get('message')}}
                </div>
                @endif


                <div class="col-md-12 animated fadeIn bg-default poll-content">
                    @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>

                    @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>
                    @else

                    <h3>True Ans : {{$result['true_ans']}}</h3>
                    <h3>False Ans : {{$result['false_ans']}}</h3>

                    @foreach($full_result as $r)
                    <h4 class="ques-row"> {{($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; {{$r->text}}</h4>
                    <h5>Your Ans: {{$r->your_ans}}</h5>
                    <h5>Correct Ans: {{$r->true_ans}}</h5>
                    @endforeach
                    @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="{{url()}}"><i class="fa fa-facebook"></i> Share </button>

                </div>
                @endif
            </div>

            <div class="col-md-3 bg-default">
                @include('user.rightbar')
            </div>
        </div>
        <div class="col-md-1"></div>
    </div>
    <!------- // Poll Page  ---------->
</div>
@stop
