are you referencing authors twice? If so, that would definitely be the issue. It would pull from the active records, which would return nothing
{% set authors = collection.orderBy(this.param.orderby, this.param.order).paginate(this.param.ipp) %}
{% set authors = collection.whereNotNull('deleted_at').orderBy(this.param.orderby, this.param.order).paginate(this.param.ipp) %} {# would return null since you already got the ones that are not deleted #}
Try this for me and see if it works
{% set authors = collection.orderBy(this.param.orderby, this.param.order).paginate(this.param.ipp) %}
{% set deleted_authors = collection.whereNotNull('deleted_at').orderBy(this.param.orderby, this.param.order).paginate(this.param.ipp) %}
{{ dd(authors) }}
{{ dd(deleted_authors) }}
The only thing that I could think of why it’s not returning is that you may need to put .get() at the end since it’s using a where query. Other than that I’m stumped