{% extends "base.html" %}{% block title %}Stock Locations{% endblock %}{% block content %}
<div class="card p-4 shadow-sm mb-4"><h2>🏬 Stock Locations</h2><form method="post" class="row g-2"><div class="col-md-4"><input name="location_name" class="form-control" placeholder="Shop / Home / Warehouse" required></div><div class="col-md-6"><input name="description" class="form-control" placeholder="Description"></div><div class="col-md-2"><button class="btn btn-primary w-100">Add</button></div></form></div>
<div class="card p-4 shadow-sm"><h4>Location Summary</h4><table class="table"><tr><th>Location</th><th>Item Count</th><th>Total Qty</th></tr>{% for s in summary %}<tr><td>{{ s.location }}</td><td>{{ s.item_count }}</td><td>{{ s.total_qty }}</td></tr>{% endfor %}</table><h4>Locations</h4><table class="table"><tr><th>Name</th><th>Description</th></tr>{% for l in locations %}<tr><td>{{ l.location_name }}</td><td>{{ l.description or '-' }}</td></tr>{% endfor %}</table></div>
{% endblock %}
