{"list": {"title": "My Invoices", "columns": [{"field": "invoice_number", "label": "Number", "sortable": true}, {"type": "date", "field": "date", "label": "Date", "sortable": true}, {"type": "date", "field": "due_date", "label": "Due Date", "sortable": true}, {"type": "currency", "field": "amount", "label": "Amount", "sortable": true}, {"type": "currency", "field": "amount_paid", "label": "Paid", "sortable": true}, {"type": "badge", "field": "status", "label": "Status", "sortable": true}], "rowActions": [{"icon": "fa-eye", "label": "View", "action": "openModal", "modalId": "invoice-detail"}, {"icon": "fa-credit-card", "class": "btn-primary btn-sm", "label": "Pay Now", "action": "payments:initiate", "condition": "amount_paid < amount"}, {"icon": "fa-file-pdf", "class": "btn-ghost btn-sm", "label": "Download PDF", "action": "invoices:pdf"}], "defaultSort": {"field": "date", "direction": "desc"}}, "type": "list-detail", "table": "invoices", "detail": {"size": "large", "title": "Invoice Details", "modalId": "invoice-detail", "readonly": true, "sections": [{"title": "Invoice Information", "fields": [{"name": "invoice_number", "type": "text", "label": "Invoice #", "readonly": true}, {"name": "date", "type": "date", "label": "Date", "readonly": true}, {"name": "due_date", "type": "date", "label": "Due Date", "readonly": true}, {"name": "status", "type": "text", "label": "Status", "readonly": true}]}, {"title": "Payment Details", "fields": [{"name": "amount", "type": "currency", "label": "Total Amount", "readonly": true}, {"name": "amount_paid", "type": "currency", "label": "Amount Paid", "readonly": true}]}]}, "dataFilter": "client_id IN (SELECT client_id FROM clients WHERE user_id = {current_user_id})", "primaryKey": "invoice_id"}