title: laravel 5.4 showing blank view
body: <p>I am sending data from the controller to a view (this is a single page web app) but view's input fields are showing nothing. When I use console.log I got this (screenshot attached). My question is how do I show this data in an input field of view?</p>
  
  <p><img src="https://i.stack.imgur.com/BxZxj.jpg" alt="\enter image description here][1]"></p>
  
  <p>Controller</p>
  
  <pre><code>public function edit(Request $request){
          $results = Student::where('id', '=', $request-&gt;id)-&gt;get();
          return $results;
      }
  </code></pre>
  
  <p>View</p>
  
  <pre><code>&lt;form class="form_edit" action="" method="post" enctype="multipart/form-data"&gt;
          {{csrf_field()}}
          @if(isset($results))
          @foreach ($results as $result)
              &lt;input type="hidden" id="id"&gt;
              &lt;input type="text" class="form-control" name="grn" value="{{$result-&gt;grn}}"&gt;
              &lt;input type="text" class="form-control" name="first_name" id="addItem" value="{{$result-&gt;first_name}}"&gt;
              &lt;input type="text" class="form-control" name="last_name" value="{{$result-&gt;last_name}}"&gt;
              &lt;input type="button" class="btn btn-danger" id="btn_delete" value="Delete"&gt;
              &lt;input type="reset" class="btn btn-default" id="btn_close" value="Cancel"&gt;
              &lt;input type="button" class="btn btn-primary" id="btn_update" value="Update"&gt;
          @endforeach
          @endif
      &lt;/form&gt;
  </code></pre>