title: display JSON in laravel blade
body: <p>Hey guys I'm using a rating system in my project and I'm trying to filter announcers according to their level</p>
  
  <p>I used ajax for that</p>
  
  <p>I get my data properly in the console( Array of objects)  but I'm wondering how can I loop through them and display them in my blade?</p>
  
  <p>my jquery code :</p>
  
  <pre><code>$(document).ready(function()
  {
      $('.star-rating input[type=radio]').click(function() {
          var text = $(this).val();
          $.ajax({
  
              url: 'filterAnnouncer',
              type: 'GET',
              data: { text, },
              success: function(data)
              {
                  console.log(data);
              }
          });            
      });
  });
  </code></pre>
  
  <p>My Laravel Controller</p>
  
  <pre><code>public function handleFilterBagageAnnouncer(Request $request){
      $data = $request-&gt;text;
      $filter = BagageAnnouncement::whereHas(
          'announcement.user.profile.profileSetting',
          function ($q2) use ($data) {
              $q2-&gt;where('level',$data);
          }
      )-&gt;get();
      return json_decode($filter);
  }
  </code></pre>