{% extends "base.html" %}
{% block content %}
  <h1 class="title">Welcome to search, {{ name }}!</h1>

  <div class="container">
    <div class="row">
      <div class="col">
        <div class="profile-info">
          <p>PROFILE INFO</p>
        </div>
        <div class="update-info">
          {% if user.seti %}
            {% if user.plan == None %}
              {% include 'checkout.html' %}
            {% else %}
              <form>
                <button id="button" formaction="/portal">Customer portal</button>
              </form>
            {% endif %}
          {% else %}
            <button id="setup-button">Setup payment mandate</button>
          {% endif %}
        </div>
      </div>
    </div>
  </div>

{% endblock %}

