{
    "title":"Time Entries & Expenses",
    "header":[
      {"type":"filter-select",
        "options":{
          "source_table":"users",
          "source_column":"id",
          "display_column":"full_name",
          "default_label":"All",
          "data_column":"user_id"
        }
      },
      {"type":"filter-select",
        "options":{
          "data_column":"approved",
          "options":[
            {"label":"All","value":""},
            {"label":"Approved","value":"true"},
            {"label":"Pending","value":"false"}
          ],
          "value": "false"
        }
      },
      {"type":"filter-date-range",
        "options":{"data_column":"logged_date"}
      }
    ],
    "body":[
      {"type":"tabs",
        "tabs":[
          {"label":"Time Entries","elements":[
            {"type":"table","options":{
              "tableName":"time_entries",
              "inlineEdit":true,
              "showGlobalSearch":false,
              "addButton":false,
              "filterField":["user_id","approved","logged_date"],
              "columnsToShow":["council", "client_name", "hours", "total", "description", "billable","approved","approval_comment"]
            }}
          ]},
          {"label":"Expenses","elements":[
            {"type":"table","options":{
              "tableName":"expenses",
              "inlineEdit":true,
              "showGlobalSearch":false,
              "addButton":false,
              "filterField":["user_id","approved","logged_date"],
              "columnsToShow":["council", "client_name","amount","description","billable","approved","approval_comment"]
            }}
          ]},
          {"label":"One Time Costs","elements":[
            {"type":"table","options":{
              "tableName":"one_time_service_costs",
              "inlineEdit":true,
              "filterField":["user_id","approved","cost_date"],
              "columnsToShow":["council", "client_name", "amount","description","billable","approved","comments"]
            }}
          ]}
        ]
      }
    ],
    "footer":[{"type":"button","label":"Close","onClick":"closeModal"}]
  }