<?php $sitep = $post->entry()->where('type', 'answer')->where('source', $entry->id)->get(); ?>

<ol class="option-selection  <?php if($entry->video == '1'): ?>thdefault <?php else: ?> <?php echo e($entry->video == "2" ?  'thlarge' : 'thlist'); ?><?php endif; ?>">
    <?php foreach($sitep as $keya => $answers): ?>
        <?php  $keya=$keya+1;?>

        <li>
            <?php if(!Auth::check() and getenvcong('sitevoting')=="1"): ?>
                <a class=""  href="<?php echo e(url('/login')); ?>" rel="get:Loginform">
                    <?php else: ?>
                        <?php if($answers->vote()->VoteOnPost()->first()): ?>
                            <a class="active"  href="#ok">
                                <?php else: ?>

                                    <?php if($entry->pollvotes()->currentUserHasVoteOnPost($entry->id)->get()->first()): ?>

                                        <a class="off" href="#ok">

                                            <?php else: ?>

                                                <a class="postable"  data-method="Post" data-target="answerpoll<?php echo e($entry->id); ?>" href="<?php echo e(action('PollController@VoteANewPoll', [$entry->id, $post->slug , 'vote' => $answers->id] )); ?>" rel="nofollow">

                                                    <?php endif; ?>
                                                    <?php endif; ?>
                                                    <?php endif; ?>
                                                    <div class="answer-cover">
                                                        <?php if($entry->video!='3'): ?>
                                                            <img class=" responsive-img" alt="<?php echo e($answers->title); ?>" src="<?php echo e(makepreview($answers->image, null, 'answers')); ?>">
                                                        <?php endif; ?>
                                                        <div class="option-sel" >
                                                            <div class="buzz-icon buzz-answer-circle"></div>
                                                            <span  class="option-text">
                                                            <?php echo $answers->title > "" ? $answers->title : '<br>'; ?>

                                                            </span>
                                                        </div>
                                                    </div>

                                                    <?php if($entry->pollvotes()->currentUserHasVoteOnPost($entry->id)->get()->first()): ?>
                                                        <div class="meta" style=" <?php if($entry->video!='3'): ?> position:relative;text-align:right;   <?php endif; ?> font-size:26px;margin-top:-5px;font-weight: 700;  ">
                                                            <small style="font-size:14px;line-height:12px;top:-4px;margin-right:6px;position:relative;font-weight: 400;vertical-align: middle; <?php if($entry->video!='3'): ?> float:left; top:11px; left:15px;<?php endif; ?>">  <?php echo e(trans('updates.vote', ['count' => $answers->vote()->count()])); ?> - </small>
                                                            <?php echo e($answers->vote()->count() ?  intval(($answers->vote()->count() / $entry->pollvotes()->count()) * 100, 2) : 0); ?> %

                                                        </div>
                                                        <div class="result_bar" style="border-radius:4px;overflow:hidden;height: 7px;background-color: #e4e4e4;margin: 10px 7px 4px  7px;">
                                                            <div class="poll_main_color result_bar_inner"  data-percent="<?php echo e($answers->vote()->count() ?  intval(($answers->vote()->count() / $entry->pollvotes()->count()) * 100, 2) : 0); ?>" style="width: 0%;background-color: #d0250e; height: inherit; transition: width .4s ease-in;-webkit-transition: width .4s ease-in;"></div>
                                                        </div>

                                                    <?php endif; ?>
                                                </a>
                                                <div class="clear"></div>
        </li>
        <?php if(($keya%3)==0 and $entry->video=='1'  or ($keya%2)==0 and $entry->video=='2' ): ?>
</ol><div class="clear"></div> <ol class="option-selection  <?php if($entry->video == '1'): ?>thdefault <?php else: ?> <?php echo e($entry->video == "2" ?  'thlarge' : 'thlist'); ?><?php endif; ?>">
    <?php endif; ?>
    <?php endforeach; ?>
</ol>