{% extends "base.html" %}{% block title %}Trash{% endblock %}{% block content %}
<div class="card p-4 shadow-sm"><h2>🗑️ Trash / Soft Deleted Records</h2><h4>Deleted Orders</h4><table class="table"><tr><th>ID</th><th>Invoice</th><th>Item</th><th>Deleted At</th><th>Restore</th></tr>{% for o in deleted_orders %}<tr><td>{{o.id}}</td><td>{{o.invoice_no}}</td><td>{{o.item_name}}</td><td>{{o.deleted_at}}</td><td><form method="post" action="{{ url_for('restore_order', order_id=o.id) }}"><button class="btn btn-sm btn-success">Restore</button></form></td></tr>{% else %}<tr><td colspan="5">No deleted orders.</td></tr>{% endfor %}</table><h4>Other Records</h4><table class="table"><tr><th>Table</th><th>ID</th><th>Deleted By</th><th>Deleted At</th></tr>{% for r in deleted_records %}<tr><td>{{r.table_name}}</td><td>{{r.record_id}}</td><td>{{r.deleted_by}}</td><td>{{r.deleted_at}}</td></tr>{% endfor %}</table></div>
{% endblock %}
