{% extends 'shop/base.html' %}
{% load i18n %}

{% block content %}
<div class="d-flex justify-content-between align-items-center mb-3">
    <h2 class="m-0">{% trans "My Shops" %}</h2>
    <a href="{% url 'backoffice:create' %}" class="btn btn-primary">
        <i class="fas fa-plus fa-fw"></i> {% trans "Create shop" %}
    </a>
</div>
{% include 'shop/_shop_table.html' with shops=personal_shops %}

{% if can_manage_corp %}
<h2 class="mt-5 mb-3">{% trans "Corporation Shops" %}</h2>
{% include 'shop/_shop_table.html' with shops=corp_shops %}
{% endif %}

<div class="alert alert-secondary d-flex align-items-center gap-2 mt-5 mb-0 small" role="note">
    <i class="fas fa-comment-dots fa-fw"></i>
    <span>
        {% trans "Found a bug or have an idea for aa-shop?" %}
        <a href="https://gitlab.com/daniel.onisoru/aa-shop/-/issues" target="_blank" rel="noopener" class="alert-link">{% trans "Open an issue" %}</a>
        {% trans "or say hi on the" %}
        <a href="https://discord.gg/fjnHAmk" target="_blank" rel="noopener" class="alert-link">{% trans "Alliance Auth Discord" %}</a>.
    </span>
</div>
{% endblock %}
