how to get array 1 in blade laravel code example Example: laravel in array blade @if(in_array($val, $array))