title: Send data from blade to onclick function's parameters
body: <p>I'm having this problem, let me show you my code first:</p>
  
  <pre><code>@foreach ($categories as $category)
  &lt;tr&gt;
   &lt;td&gt;{{ $category-&gt;category_name }}&lt;/td&gt;
    &lt;td&gt;{{ $category-&gt;category_description }}&lt;/td&gt;
      &lt;td&gt;
      &lt;button type="button"
          id="{{ $category-&gt;id }}"
         class="btn btn-info"
         onClick="{{category_manage(this, $category)}}"
      &gt;Update / Delete&lt;/button&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  @endforeach
  
  // jQuery
  function category_manage(id, payload) {
    // payload is the category details that i send through second parameters
    console.log(id, payload);
  }
  </code></pre>
  
  <p>Is there any way I could do this in Laravel and jQuery?</p>