{
    "Bookings": {
        "table": {
            "searching": {
                "default": false,
                "values": [true, false]
            },
            "columns": {
                "default": [
                    {
                        "data": "id",
                        "name": "id",
                        "title": "ADMIN_DASHBOARD.BOOKINGS_PAGE.LISTING.COLUMNS.REFERENCE",
                        "orderable": false,
                        "sref": "bookings.edit({id: $row.item.id})"
                    },
                    {
                        "data": "client_name",
                        "name": "client_name",
                        "title": "ADMIN_DASHBOARD.BOOKINGS_PAGE.LISTING.COLUMNS.CLIENT",
                        "orderable": true,
                        "sref": "clients.edit({id: $row.item.client_id})"
                    },
                    {
                        "data": "service_name",
                        "name": "service_name",
                        "title": "ADMIN_DASHBOARD.BOOKINGS_PAGE.LISTING.COLUMNS.SERVICE",
                        "defaultContent": "-",
                        "orderable": true,
                        "sref": "services.edit({id: $row.item.service_id })"
                    },
                    {
                        "data": "person_name",
                        "name": "person_name",
                        "title": "ADMIN_DASHBOARD.BOOKINGS_PAGE.LISTING.COLUMNS.PERSON",
                        "orderable": true,
                        "sref": "people.edit({id: $row.item.person_id})"
                    },
                    {
                        "data": "resource_name",
                        "name": "resource_name",
                        "title": "ADMIN_DASHBOARD.BOOKINGS_PAGE.LISTING.COLUMNS.RESOURCE",
                        "orderable": false,
                        "sref": "resources.edit({id: $row.item.resource_id})"
                    },
                    {
                        "data": "company_name",
                        "title": "ADMIN_DASHBOARD.BOOKINGS_PAGE.LISTING.COLUMNS.LOCATION",
                        "orderable": false
                    },
                    {
                        "data": "datetime",
                        "name": "datetime",
                        "title": "ADMIN_DASHBOARD.BOOKINGS_PAGE.LISTING.COLUMNS.DATETIME",
                        "orderable": true,
                        "filter": "dateTimeConfig:'defaultFormat':true"
                    }
                ],
                "values": "*bbc"
            },
            "buttons": {
                "default": {
                    "buttons": [
                        "pageLength",
                        "colvis"
                    ]
                },
                "values": "*bbc"
            },
            "pagingType": {
                "default": "full_numbers",
                "values": [
                    "numbers",
                    "simple",
                    "simple_numbers",
                    "full",
                    "full_numbers",
                    "first_last_numbers"
                ]
            },
            "language": {
                "default": {
                    "search": "_INPUT_",
                    "searchPlaceholder": "ADMIN_DASHBOARD.BOOKINGS_PAGE.LISTING.FILTER_PLACEHOLDER"
                },
                "values": "*bbc"
            },
            "buttonSections": {
                "default": {
                    "title": [],
                    "topRight": [],
                    "topLeft": [],
                    "bottomRight": [],
                    "bottomLeft": [],
                    "rowRight": [
                        {
                            "if": "$row.item.$has('event_chain')",
                            "style": "default xs",
                            "translation": "ADMIN_DASHBOARD.BOOKINGS_PAGE.DETAILS_BTN",
                            "sref": "events.details.views.views({view: 'instances', sub_view: 'instance_attendees', id: $row.item.getSlot().session_id, slot_id: $row.item.slot_id})"
                        },
                        {
                            "if": "!$row.item.$has('event_chain')",
                            "style": "default xs",
                            "translation": "ADMIN_DASHBOARD.BOOKINGS_PAGE.DETAILS_BTN",
                            "sref": "bookings.edit({id: $row.item.id})"
                        }
                    ]
                },
                "values": "*bbc"
            }
        }
    }
}
