{%block content%}
{% if poll_details %}
{%set i=0%} {% for question_detail in questions_details%} {%set i=i+1%} {%if question_print %}

{{ __("Question") }}: {{ question.poll_order }} {{ esc_html( stripslashes( question_detail.name) )}}

{% for answerr in question_detail.answers%} {%endfor%}
{{ __ ("Answer") }} {{ __ ("Votes") }} {{ __ ("Percent") }}
{{answerr.answer}} {{answerr.votes}} {{answerr.status}} %
{% endif%}
{%if other_print%}

{{__( "Poll Other Answers")}}:

{%set index=0%} {% for answer in question_detail.answers%} {% if answer.type == 'other' %} {%set index=1 %} {%endif%} {%endfor%} {% if index==0 %} {%endif%}
{{__( "Value" )}} {{__( "Votes" )}}
{{ esc_html( stripslashes( answer.answer ) )}} {{ esc_html( stripslashes( answer.votes ) )}}
{{__( 'No other answers defined!')}}
{% endif%}
{%if custom_print%}

{{__( "Custom Fields")}}:

{{ wp_nonce_field( 'yop-poll-custom-fields', 'yop-poll-custom-fields', false, false ) | raw }}    {{ count( question_detail.custom_fields_logs_details)}} / {{question_detail.total_custom_fields_logs}} {{__( "items")}} {{question_detail.cf_pagination | raw}}
{% for custom_field in question_detail.custom_fields %} {%endfor%} {%set index=0%} {%for custom_field_detail in question_detail.custom_fields_logs_details%} {%set index=index+1%} {%for id in custom_field_detail.column_custom_fields_ids%} {%set value=custom_field_detail.custom_fields_value%} {%endfor%} {% else %} {%endfor%}
{{__( '#' )}}{{ ucfirst( custom_field.custom_field )}}{{__( "Vote ID")}} {{__( "Tracking ID" )}} {{__( "Vote Date")}}
{{index}}{{value[id]}}{{custom_field_detail.vote_id}} {{custom_field_detail.tr_id}} {{custom_field_detail.vote_date}}
{{ __("No Custom Field Defined") }}
{% endif%}
{% endfor %}
{{ wp_nonce_field( 'yop-poll-results_vote','yop-poll-results_votes', false, false ) | raw }} {%if votes_print%} {%if votes_id%} {%endif%} {%if user_type%} {%endif%} {%if track_id%} {%endif%} {%if ip_print%} {%endif%} {%if date_print%} {%if votes_id%} {%endif%} {%if user_type%} {%endif%} {%if track_id%} {%endif%} {%if ip_print%} {%endif%} {%if date_print%} {%set index=1%} {% if count( results ) > 0 %} {% for result in results %} {%if votes_id%} {%endif%} {%if user_type%} {%endif%} {%if track_id%} {%endif%} {%if ip_print%} {%endif%} {%if date_print%} {%endif%} {%endif%} {%endif%} {%set index=index+1%} {%endfor%} {%endif%}
{{__( 'Vote ID')}} {{__( 'User Type')}} {{( 'Tracking ID')}} {{__( 'Ip' )}} {{__( 'Vote Date')}} {%endif%} {{__( 'Vote')}}
{{__( 'Vote ID')}} {{__( 'User Type')}} {{( 'Tracking ID')}} {{__( 'Ip' )}} {{__( 'Vote Date')}} {%endif%} {{__( 'Vote')}}
{{result.vote_id}}

{{esc_html( stripslashes(result.user_type ))}} {{esc_html( stripslashes( result.tr_id ))}} {{esc_html( stripslashes( result.ip ))}} {{esc_html( stripslashes( result.vote_date ))}} {{__("Questions")}}
{{result.vote_answers |nl2br}}
{%if strlen (result.custom_fields)>1%} {{__("Custom Fields")}}
{{ result.custom_fields|nl2br}}
{{count( results )}} / {{total_results}} results {{pagination | raw}}
{%endif%}
{%else %}

{{__( 'Your poll doesn`t exist!' )}}

{%endif%}
{%endblock content%}