{% extends 'employee-base.html' %}
{% block content %}

<div class="dashboard-wrapper">
    <div class="stats-grid">
        <div class="dashboard-card">
            <div class="card-content">
                <div class="icon-circle">
                    <svg xmlns="http://www.w3.org/2000/svg" class="dashboard-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
                    </svg>
                </div>
                <div class="stat-info">
                    <h3>Active Containers</h3>
                    <p class="stat-number">{{ containers }}</p>
                    <p class="stat-change">+3 since last week</p>
                </div>
            </div>
        </div>
        <div class="dashboard-card">
            <div class="card-content">
                <div class="icon-circle">
                    <svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
                    </svg>
                </div>
                <div class="stat-info">
                    <h3>Active preinfos</h3>
                    <p class="stat-number">{{ preinfos }}</p>
                    <p class="stat-change">+7 since last week</p>
                </div>
            </div>
        </div>
        <div class="dashboard-card">
            <div class="card-content">
                <div class="icon-circle">
                    <svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4" />
                    </svg>
                </div>
                <div class="stat-info">
                    <h3>Active bookings</h3>
                    <p class="stat-number">{{ bookings }}</p>
                    <p class="stat-change">+8 since last week</p>
                </div>
            </div>
        </div>

        <!-- Other two cards similar structure -->
    </div>

    <div class="tables-grid">
        <div class="dashboard-card">
            <div class="card-header">
                <h3>Recent Container Activity</h3>
            </div>
            <div class="card-body">
                <table class="table">
                    <thead>
                        <tr>
                            <th>Container</th>
                            <th>Type</th>
                            <th>Status</th>
                            <th>Date</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>MSCU1234567</td>
                            <td>40HC</td>
                            <td><span class="status-tag status-received">Received</span></td>
                            <td>2023-06-15</td>
                        </tr>
                        <!-- Other rows similar structure -->
                    </tbody>
                </table>
            </div>
        </div>

        <div class="dashboard-card">
            <div class="card-header">
                <h3>Recent payments</h3>
            </div>
            <div class="card-body">
                <table class="table">
                    <thead>
                        <tr>
                            <th>Container</th>
                            <th>Type</th>
                            <th>Status</th>
                            <th>Date</th>
                        </tr>
                    </thead>
                    <tbody>
{#                        {% for container in containers %}#}
{#                        <tr>#}
{#                            <td>{{ container.number }}</td>#}
{#                            <td>container.container_type</td>#}
{#                            <td><span class="status-tag status-received">Received</span></td>#}
{#                            <td>{{ container.received_date }}</td>#}
{#                        </tr>#}
{#                        {% endfor %}#}
                        <!-- Other rows similar structure -->
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

{% endblock %}