Admin not showing all custom post type posts and views not working

Here’s your problem:

add_action( 'pre_get_posts', function ( $query ) {
    if ( is_post_type_archive( 'pasakumi' )  && $query->is_main_query() ) {

This is great on the frontend! And the backend!! pre_get_posts works for all queries, nothing about it is exclusive to the frontend, and you can filter queries on the backend too. As a result, your date query gets applied to every single query, even the admin ones

So first, check if it’s the admin, aka:

if ( is_admin() ) {
    return;
}

Second, you don’t need to put everything inside that giant if statement, just check for the opposite and return early.

Third, this is awful for performance:

$query->set( 'posts_per_page', '-1' );

Set the value high, an unrealistically high value, but never set it to -1. Sure it might work for you now, but what happens when the business pivots and the number of pasakumi sky rockets? Or in 10 years time after lots of posts get created? Or when there’s a lot of visitors to the site?