{% extends "base.html" %}
{% block content %}
  <article class="panel is-primary">
    <p class="panel-heading">
      User information
    </p>
    <a class="panel-block is-active">
      <span class="panel-icon">
        <i class="fas fa-id-card" aria-hidden="true"></i>
      </span>
      <span class="tag is-primary">{{ user.first_name }} {{ user.last_name }}</span>
    </a>
    <a class="panel-block">
      <span class="panel-icon">
        <i class="fas fa-binary" aria-hidden="true"></i>
      </span>
      {% for plan in user.plans.all %}
        <span class="tag is-primary">{{ plan.name }}</span>
      {% endfor %}
    </a>
    <a class="panel-block">
      <span class="panel-icon">
        <i class="fas fa-credit-card" aria-hidden="true"></i>
      </span>
      <span class="tag">{{ user.last_payment }}</span>
    </a>
    <a class="panel-block" href="{% url 'portal' %}">
      <span class="panel-icon">
        <i class="fa-brands fa-stripe-s" aria-hidden="true"></i>
      </span>
      Subscription management
    </a>
  </article>
  {% include "partials/product-list.html" %}
{% endblock %}

