im struggling to pass laravel 8 array value in javascript variable with function old(). this is when store the data
"date" => array:4 [▼
        0 => "2022-03-28"
        1 => "2022-03-29"
        2 => "2022-03-30"
        3 => "2022-03-31"
      ]
however it some error with the validation. i need to get back the value throught javascript. but i can't get the value back. here is the code
$(document).ready(function(){   
    var total_row = 4; 
    for (let row = 0; row < total_row; row++) { 
        var getOld_value =  {{ json_encode(old( '"date."+row+' )) }};  
        console.log(getOld_value);
    }
});
all return is null.. how do i able to get the value on javascript.
please help
