{% extends 'base.html' %}

{% block title %}Bills{% endblock %}

{% block content %}
  <h1>Bills</h1>
  <table class="table">
    <thead>
      <tr>
        <th>Bill #</th>
        <th>Vendor</th>
        <th>Bill Date</th>
        <th>Due Date</th>
        <th>Total</th>
        <th>Paid</th>
      </tr>
    </thead>
    <tbody>
      {% for bill in bills %}
        <tr>
          <td>{{ bill.id }}</td>
          <td>{{ bill.vendor_name }}</td>
          <td>{{ bill.bill_date }}</td>
          <td>{{ bill.due_date }}</td>
          <td>{{ bill.total_amount }}</td>
          <td>{{ bill.paid|yesno:"Yes,No" }}</td>
        </tr>
      {% endfor %}
    </tbody>
  </table>
{% endblock %}
