{% extends 'base.html' %}
{% load i18n static %}

{% block content %}
<div class="container mt-4">
    <div class="card shadow-sm" style="max-width: 500px; margin: 0 auto;">
        <div class="card-header bg-primary text-white">
            <h4 class="mb-0"><i class="fas fa-cash-register me-2"></i> {% trans "Start Cashier Session" %}</h4>
        </div>
        <div class="card-body">
            <div class="alert alert-info">
                <strong>{% trans "Counter:" %}</strong> {{ counter.name }} <br>
                <strong>{% trans "Cashier:" %}</strong> {{ request.user.username }}
            </div>
            
            <form method="post">
                {% csrf_token %}
                <div class="mb-3">
                    <label class="form-label">{% trans "Opening Cash Balance" %}</label>
                    {{ form.opening_balance }}
                </div>
                <div class="mb-3">
                    <label class="form-label">{% trans "Notes" %}</label>
                    {{ form.notes }}
                </div>
                <div class="d-grid">
                    <button type="submit" class="btn btn-success">{% trans "Open Session" %}</button>
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}
