{#renderDashboardCampaigns#}
{% if ( endingCampaign is not empty and endingCampaign == true ) %}
At least one of your campaign ends in next few days.
{% endif %}
{{ campaigns_header }} {% if edit is empty and ( getBanners is not empty ) %}
Add new campaign
{% endif %}
{% if getBanners is empty %}

We're excited that you are adding your first ad!

This view is empty, but everything is fine. Here you will see your list of created campaigns. You are starting, so obviously is that here is empty. Before this, please create your first ad below.
{% else %} {% if edit is not empty %} {##}
{{ campaigns_settings }}

{{ __('Oops. Wizard cannot be saved. Error found. Please look at the red errors above.', 'adfoxly') }}

{{ __('Cancel', 'adfoxly') }}
{% else %}
{% if getCampaigns is not empty %} {% for campaign in getCampaigns %} {% endfor %} {% endif %}
# Campaign Start Date End Date Actions
{{ loop.index }} {{ campaign.details.post_title }} {% if ( attribute(campaign.details, 'adfoxly-ad-campaign-start') is empty ) %} - {% else %} {{ attribute(campaign.details, 'adfoxly-ad-campaign-start') }} {% endif %} {% if ( attribute(campaign.details, 'adfoxly-ad-campaign-end') is empty ) %} - {% else %} {{ attribute(campaign.details, 'adfoxly-ad-campaign-end') }} {% endif %} {% if ( attribute(campaign.details, 'adfoxly-ad-campaign-end') is not empty and date(attribute(campaign.details, 'adfoxly-ad-campaign-end')) <= date() ) %} {{ __( '(finished)', 'adfoxly' ) }} {% elseif ( attribute(campaign.details, 'adfoxly-ad-campaign-end') is not empty and date(attribute(campaign.details, 'adfoxly-ad-campaign-end')) < date('7days') ) %} {{ __( '(ending)', 'adfoxly' ) }} {% endif %}
{% endif %} {% endif %}