title: Data is not displaying in table properly
body: <p>i am using laravel and sending data through json and iterate that data using jquery in a table the data is displaying in table but along with it showing "No data available in table" i am sharing image and code below.</p>
  
  <p><a href="https://i.stack.imgur.com/1OnyP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1OnyP.jpg" alt="Image"></a></p>
  
  <p>Html COde</p>
  
  <pre><code>&lt;div class="row"&gt;
                  &lt;div class="col-lg-12" &gt;
                  &lt;div class="table-responsive"&gt;
          &lt;table class="table table-striped custom-table datatable"&gt;
              &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th&gt;Item&lt;/th&gt;
                      &lt;th&gt;Purchase From&lt;/th&gt;
                      &lt;th&gt;Purchase Date&lt;/th&gt;
                      &lt;th&gt;Purchased For&lt;/th&gt;
                      &lt;th&gt;Amount&lt;/th&gt;
                      &lt;th&gt;Paid By&lt;/th&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
               &lt;tbody id="t_data"&gt;
  
               &lt;/tbody&gt;
               &lt;/table&gt;
               &lt;/div&gt;
               &lt;/div&gt;
              &lt;/div&gt;
              &lt;/div&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>Jquery Code</p>
  
  <pre><code> $.ajax({
                          headers: {
                              'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                          },
                         url:'/expense-report',
                          type:'post',
                          data:datastring,
  
                          success:function(data){
  
                              //console.log(data);
                              $.each(data, function() {
                              $.each(this, function(index, value) {
                                  $("#t_data").append('&lt;tr&gt;&lt;td&gt;'+value.item_name+'&lt;/td&gt;&lt;td&gt;'+value.purchase_from+'&lt;/td&gt;&lt;td&gt;'+value.purchase_date+'&lt;/td&gt;&lt;td&gt;'+value.purchase_for+'&lt;/td&gt;&lt;td&gt;'+value.amount+'&lt;/td&gt;&lt;td&gt;'+value.paid_by+'&lt;/td&gt;&lt;/tr&gt;');
                               });
                              });
  
                                 $(".mny").html('Total Money Spent : '+data.sum);
  
  
  
                              },
                          error: function (data) {
                          console.log('Error:', data);
                           }
  
  
                      });
  </code></pre>