{
        "table": "quotations",
        "primaryKey": "quotation_id",
        "clientFilter": "client_id",
        "list": {
            "title": "My Quotations",
            "description": "View and manage your quotations",
            "dataSource": "/api/quotations/my-quotations",
            "autoRefresh": 60000,
            "emptyMessage": "You have no quotations yet",
            "columns": [
                {
                    "field": "quotation_number",
                    "label": "Quote #",
                    "sortable": true,
                    "searchable": true
                },
                {
                    "field": "date",
                    "label": "Date",
                    "render": "date",
                    "sortable": true
                },
                {
                    "field": "total_amount",
                    "label": "Amount",
                    "render": "currency",
                    "sortable": true
                },
                {
                    "field": "status",
                    "label": "Status",
                    "render": "badge",
                    "sortable": true
                },
                {
                    "field": "expires_at",
                    "label": "Expires",
                    "render": "date",
                    "sortable": true
                }
            ],
            "filters": [
                {
                    "field": "status",
                    "label": "Status",
                    "type": "select",
                    "options": [
                        {"value": "all", "label": "All Quotations"},
                        {"value": "sent", "label": "Pending"},
                        {"value": "accepted", "label": "Accepted"},
                        {"value": "rejected", "label": "Rejected"},
                        {"value": "expired", "label": "Expired"}
                    ]
                }
            ],
            "rowActions": [
                {
                    "label": "View Details",
                    "icon": "fa-eye",
                    "action": "openModal",
                    "modalId": "my-quotation-detail",
                    "class": "btn-sm"
                },
                {
                    "label": "Accept",
                    "icon": "fa-check",
                    "action": "quotations:accept",
                    "condition": "status == \"sent\"",
                    "confirm": "Are you sure you want to accept this quotation?",
                    "class": "btn-success btn-sm"
                },
                {
                    "label": "Reject",
                    "icon": "fa-times",
                    "action": "quotations:reject",
                    "condition": "status == \"sent\"",
                    "class": "btn-error btn-sm"
                },
                {
                    "label": "Request Changes",
                    "icon": "fa-comment",
                    "action": "clarification:request",
                    "condition": "status == \"sent\"",
                    "class": "btn-warning btn-sm"
                },
                {
                    "label": "Download PDF",
                    "icon": "fa-file-pdf",
                    "action": "quotations:pdf",
                    "class": "btn-ghost btn-sm"
                }
            ]
        },
        "detail": {
            "modalId": "my-quotation-detail",
            "title": "Quotation Details",
            "size": "xl",
            "readonly": true,
            "tabs": [
                {
                    "id": "details",
                    "label": "Details",
                    "icon": "fa-info-circle",
                    "sections": [
                        {
                            "title": "Quotation Information",
                            "fields": [
                                {"name": "quotation_number", "label": "Quote Number", "type": "text", "readonly": true},
                                {"name": "date", "label": "Date", "type": "date", "readonly": true},
                                {"name": "expires_at", "label": "Valid Until", "type": "date", "readonly": true},
                                {"name": "status", "label": "Status", "type": "text", "readonly": true}
                            ]
                        },
                        {
                            "title": "Your Information",
                            "fields": [
                                {"name": "customer_name", "label": "Customer Name", "type": "text", "readonly": true},
                                {"name": "customer_email", "label": "Email", "type": "email", "readonly": true},
                                {"name": "customer_phone", "label": "Phone", "type": "text", "readonly": true},
                                {"name": "customer_address", "label": "Address", "type": "textarea", "readonly": true}
                            ]
                        }
                    ]
                },
                {
                    "id": "items",
                    "label": "Line Items",
                    "icon": "fa-list",
                    "component": "LineItemsView",
                    "componentConfig": {
                        "table": "quotation_items",
                        "foreignKey": "quotation_id",
                        "readonly": true,
                        "showTotals": true
                    }
                },
                {
                    "id": "notes",
                    "label": "Notes & Terms",
                    "icon": "fa-file-alt",
                    "sections": [
                        {
                            "title": "Additional Information",
                            "fields": [
                                {"name": "note", "label": "Notes", "type": "textarea", "readonly": true, "rows": 4},
                                {"name": "terms", "label": "Terms & Conditions", "type": "textarea", "readonly": true, "rows": 6}
                            ]
                        }
                    ]
                }
            ],
            "actions": {
                "view": [
                    {
                        "label": "Accept Quotation",
                        "icon": "fa-check",
                        "action": "quotations:accept",
                        "condition": "status == \"sent\"",
                        "confirm": "Are you sure you want to accept this quotation? This will create an invoice.",
                        "class": "btn-success"
                    },
                    {
                        "label": "Reject Quotation",
                        "icon": "fa-times",
                        "action": "quotations:reject",
                        "condition": "status == \"sent\"",
                        "class": "btn-error"
                    },
                    {
                        "label": "Request Changes",
                        "icon": "fa-comment",
                        "action": "clarification:request",
                        "condition": "status == \"sent\"",
                        "class": "btn-warning"
                    },
                    {
                        "label": "Download PDF",
                        "icon": "fa-file-pdf",
                        "action": "quotations:pdf",
                        "class": "btn-ghost"
                    },
                    {
                        "label": "Close",
                        "action": "cancel"
                    }
                ]
            }
        }
    }