@extends('user.master')
@section('content')
<div class="clearfix">&nbsp;</div>
<div class="clearfix">&nbsp;</div>
<div class="clearfix">&nbsp;</div>
<div class="col-md-2"></div>
<div class="col-md-8">
    <!-- MAIN CONTENT AREA AFTER LOGIN -->
    @include('user.user-profile') <!-- Include user profile blade file ---->
    <div class="clearfix">&nbsp;</div>
    <div class="bg-default animated slideInUp">
        <div class="row">
<!--
            <div class="col-md-4">
                <?php
                $grp = array();
                $grp[0] = 'Select Quiz Group';
                foreach ($quiz_group as $gp) {
                    $grp[$gp->group_id] = $gp->group_name;
                }
                ?>
                {{Form::select('group_name',$grp,Input::get('quiz_group'),array('class'=>'form-control input-sm'))}}
            </div>
             <div class="clearfix visible-sm visible-xs">&nbsp;</div>
            <div class="col-md-6">
                <span id="page_loader"></span>
                @if($group_details)
                <i class="fa fa-bullhorn"></i> Selected quiz group :<strong> {{$group_details->group_name}}</strong>
                @else
                <i class="fa fa-bullhorn"></i> Select a group to start quiz.
                @endif

                @if(Session::has('message'))
                {{ Session::get('message')}}
                @endif
            </div>
             <div class="clearfix visible-sm visible-xs">&nbsp;</div>
            <div class="col-md-2">
                <!--Quiz  Start -->
               @if($group_details)

                <a  href="http://markallenpolls.com/polls"> More Polls </a>}" class="btn btn-sm btn-info btn-block"><strong><i class="fa fa-play"></i>
                        Start </strong> </a>
                @endif
             
            </div>
        </div>



    </div>
<!--
    <div class="col-md-8">

    </div>

    <div class="clearfix">&nbsp;</div>
    <div class="row">
        <div class="col-md-9 col-xs-offset-6">
            <div class="bg-default animated slideInLeft">
                <h3>Results :</h3>
                <table class="table table-responsive">
                    <tr>
                        <th class="hidden-xs"> Date </th>
                        <th> Group </th>
                        <th> Correct </th>
                        <th> Incorrect </th>
                        <th> Total </th>
                    </tr>
                    @foreach($result as $r)
                    <tr>
                        <td class="hidden-xs"> {{Util::getdate($r->quiz_date, 'Y-m-d h:i A')}} </td>
                        <td> {{$r->group_name}} </td>
                        <td> {{$r->true_ans}} </td>
                        <td> {{$r->false_ans}} </td>
                        <td> {{$r->total}} </td>
                    </tr>
                    @endforeach
                </table>
                <center> {{$result->links()}} </center>
            </div>
        </div>
-->
        <div class="clearfix visible-sm visible-xs">&nbsp;</div>
        <div class="col-md-8" style="left:230px;">
            <div class="bg-default animated slideInRight">
                <strong>Your votes : </strong>
                <hr>
                @if(!empty($polls))

                @foreach($polls as $pl)

                <a href="{{url()}}/poll-share/{{$pl->short_code}}"><i class="fa fa-bookmark" style="color: #F98400"></i> {{$pl->poll_text}} </a>
                <p></p>

                @endforeach

                <strong><a href="{{url()}}/polls"> More Polls </a></strong>


                @endif
            </div>
        </div>
    </div>
    <!-- MAIN CONTENT AREA  AFTER LOGIN  END -->
</div>
<div class="col-md-2"></div>
<div class="clearfix">&nbsp;</div>
@stop
