{% extends "layout.html" %}

{% block content %}
<div class="container-fluid pt-2">
<div class="container-fluid" style="{{ theme.homeOverviewBgColor  }}">
    <h1 class="text-center"> Overwiev </h1>
    <div class="row">
        <div class="col">
            <h3> <a href="#">Companies</a> </h3>
            <table class="{{ theme.tableClass }}">
                <thead>
                    <tr>
                        <th scope="col">Company</th>
                        <th scope="col">Country</th>
                        <th scope="col">Website</th>
                        <th scope="col">Relation</th>
                        <th scope="col">Industry</th>
                        <th scope="col">ID</th>
                    </tr>
                </thead>
                <tbody>
                    {% for company in companies %}
                    <tr>
                        <th scope="row">{{ company.name }} {{ company.legal_entity}}</th>
                        <td>{{ company.country_bill}}</td>
                        <td> <a href="http://{{ company.website }}/" target="_blank" rel="noopener noreferrer">{{ company.website}} </a> </td>
                        <td>{{ company.relation}}</td>
                        <td>{{ company.industry}}</td>
                        <td>{{ company.id}}</td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table> 
        </div>
        <div class="col">
            <h3> <a href="#">News</a> </h3>
            <table class="{{ theme.tableClass }}">
                <thead>
                    <tr>
                        <th scope="col">Total POS</th>
                        <th scope="col">Max Marg</th>
                        <th scope="col">Min Marg</th>
                        <th scope="col">Avg Marg</th>
                        <th scope="col">Total Rev</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <th scope="row">100'000 CHF</th>
                        <td>35 %</td>
                        <td>12 %</td>
                        <td>23 %</td>
                        <td>12'453 CHF</td>
                    </tr>
                </tbody>
            </table> 
        </div>
    </div>
</div>
{% endblock content %}