{% extends "base.html" %}

{% block title %}Dashboard - Shiftly Scheduler{% endblock %}

{% block content %}
<nav class="navbar navbar-expand-lg navbar-light bg-white shadow-sm">
  <div class="container">
    <a class="navbar-brand" href="{% url 'home' %}">Shiftly Scheduler</a>
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarNav">
      <ul class="navbar-nav ms-auto">
        <li class="nav-item">
            <form action="{% url 'logout' %}" method="post" class="d-inline">
                {% csrf_token %}
                <button type="submit" class="btn btn-secondary">Logout</button>
            </form>
        </li>
      </ul>
    </div>
  </div>
</nav>

<div class="container py-5">
    <h1 class="h2">Dashboard</h1>
    <p class="lead">Welcome back, {{ user.username }}!</p>
    <hr>
    <p>This is your dashboard. More features will be added soon!</p>
    <a href="{% url 'create_checkout_session' %}" class="btn btn-primary">Subscribe</a>
</div>
{% endblock %}