{% extends "base.j2" -%}

{% block content -%}

{% if request.shop %}
<section class="action-columns well">
  <div class="action-button-grid">

    <a href="/s/{{ request.shop.id }}/{{ request.shop.slug }}" class="mps-button product-edit-button">View Shop</a>
    <a href="/s/{{ request.shop.id }}/products" class="mps-button product-edit-button">View Products</a>

    {% if request.user in request.shop.owners %}
    <a href="/s/{{ request.shop.id }}/coupons" class="mps-button product-edit-button">View Coupons</a>
    {% if request.shop.gift_card_enabled %}
    <a href="/s/{{ request.shop.id }}/gift-cards/manage" class="mps-button product-edit-button">🎁&nbsp; Gift Cards</a>
    {% endif %}
    <a href="/s/{{ request.shop.id }}/offers" class="mps-button product-edit-button">🤝&nbsp; Offers</a>
    <a href="/s/{{ request.shop.id }}/users" class="mps-button product-edit-button">👤&nbsp; Shop Users</a>
    <a href="/s/{{ request.shop.id }}/sales" class="mps-button product-edit-button">💰&nbsp; Shop Sales</a>
    <a href="/s/{{ request.shop.id }}/comments" class="mps-button product-edit-button">💬&nbsp; Shop Comments</a>
    <a href="/s/{{ request.shop.id }}/analytics" class="mps-button product-edit-button">📊&nbsp; Shop Analytics</a>
    <a href="/s/{{ request.shop.id }}/settings" class="mps-button product-edit-button">⚙&nbsp; Shop Settings</a>
    {% endif %}

    <a href="/s/locations" class="mps-button product-edit-button">🏠&nbsp; Shop Locations</a>

    {% if request.is_saas_domain %}
    <a href="/u/shops" class="mps-button product-edit-button">⛭&nbsp; Switch Shop</a>
    {% endif %}

  </div>
</section>
{% endif %}

{%- endblock -%}
