@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>
        <!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1531250460512626');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=1531250460512626&ev=PageView&noscript=1"
/></noscript>
<!-- DO NOT MODIFY -->
<!-- End Facebook Pixel Code -->
        <div class="col-md-10">
            <div class="col-md-9">
                @foreach($poll as $p)
                <!-- Load Ajax Poll -->
                <div class="col-md-12 wow slideInLeft bg-default poll-content" id="poll-content-{{$p->poll_id}}" poll_id="{{$p->poll_id}}"> </div>
                <div class="clearfix">&nbsp;</div>
                <div class="clearfix load-content">&nbsp;</div>
                @endforeach
                <div id="more"></div>
                <more><center><button class="btn btn-sm btn-warning view-more">View More</button></center></more>
            </div>
            <div class="col-md-3 bg-default">
                <b>Ads: </b>
                <p></p>
                <a href="{{$settings->footer_image_link}}">
                    <img class="img-responsive portfolio-item" src="{{asset('public/images')}}/{{$settings->footer_image}}" alt="Quiz Viral marketing ">
                </a>
                <div class="clearfix">&nbsp;</div>
                <div class="hide">
                <h4> Quiz Top Scorer : </h4>
                <p></p>
                @if(!empty($top_scrorer))
                @foreach($top_scrorer as $top)
                <div class="row home-top-scorer">
<!--
                    <div class="col-md-3">
                        <div class="clearfix">&nbsp;</div>
                        <img class="img-thumbnail" src="https://graph.facebook.com/{{$top->fbid}}/picture">
                    </div>
                    <div class="col-md-9">
                        <b class="vr-text-color"><a class="vr-text-color" href="http://facebook.com/{{$top->fbid}}">{{$top->name}}</a></b>
                        <br><b> Quiz group </b>: {{$top->group_name}}
                        <br><b> Score </b>: {{$top->avg_grade}}%
                        <br><b> Date  </b>: {{Util::getdate($top->quiz_date,'d M y H:i a')}}
                    </div>
                </div>
-->
                 </div>
                <hr>
                @endforeach
                @endif
            </div>
        </div>
        <div class="col-md-1"></div>
    </div>
    <!--- // Poll Page -->
</div>
@stop
