# ===================================
# Filter Scope Definitions
# ===================================

scopes:
    status:
        type: group
        label: Status
        conditions: status in (:filtered)
        options:
            pending: ratmd.bloghub::lang.model.comments.statusPending
            approved: ratmd.bloghub::lang.model.comments.statusApproved
            rejected: ratmd.bloghub::lang.model.comments.statusRejected
            spam: ratmd.bloghub::lang.model.comments.statusSpam
        default:
            - pending
            - approved
            - rejected

    created_at:
        label: Date
        type: date
        conditions:
            after: created_at >= ':value'
            between: created_at >= ':after' AND created_at <= ':before'
            before: created_at <= ':before'

