Answers for "laravel click view details in table"

PHP
1

laravel click view details in table

<div class="col-sm-12">
        <div class="content">
          <table class="table table-striped" id="myTable">
            <thead>
              <tr>
                <th>Title</th> 
                <th>Slug</th>
                <th>Category</th>
                <th>Status</th>
                <th>Date</th>
              </tr>
            </thead>
            <tbody>
              @if(count($posts) > 0)
              @foreach($posts as $post)
              <tr>
                <td>{{ $post->title }}</td>
                <td>{{ $post->slug }}</td>
                <td>{{ $post->category_id }}</td>
                <td>{{ $post->status }}</td>
                <td>{{ $post->created_at }}</td>              
              </tr>
              @endforeach
              @else
              <tr> 
                <td>No data Found.</td>            
              </tr>
              @endif  
            </tbody>
          </table>
        </div>
      </div>
Posted by: Guest on August-24-2021

Browse Popular Code Answers by Language