Advertisement
fadlyshafa

Untitled

Sep 4th, 2019
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.16 KB | None | 0 0
  1. @extends('layouts.master')
  2.  
  3. @section('content')
  4.  
  5. <div class="row">
  6.     <div class="col-md-12">
  7.         <p>
  8.             <button class="btn btn-flat btn-sm btn-warning btn-refresh"><i class="fa fa-refresh"></i> Refresh</button>
  9.         </p>
  10.         <div class="box box-warning">
  11.             <div class="box-header">
  12.                 <h4>{{ $title }}</h4>
  13.             </div>
  14.             <div class="box-body">
  15.                 <table class="table table-hover myTable">
  16.                     <thead>
  17.                         <tr>
  18.                             <th>#</th>
  19.                             <th>Gambar</th>
  20.                             <th>Judul</th>
  21.                             <th>Penulis</th>
  22.                             <th>Stock</th>
  23.                             <th>Created At</th>
  24.                         </tr>
  25.                     </thead>
  26.                     <tbody>
  27.                         @foreach($data as $e=>$dt)
  28.                         <tr>
  29.                             <td>{{ $e+1 }}</td>
  30.                             <td>
  31.                                
  32.                             </td>
  33.                             <td>{{ $dt->judul }}</td>
  34.                             <td>{{ $dt->penulis }}</td>
  35.                             <td>{{ $dt->stock }}</td>
  36.                             <td>{{ $dt->created_at }}</td>
  37.                         </tr>
  38.                         @endforeach
  39.                     </tbody>
  40.                 </table>
  41.             </div>
  42.         </div>
  43.     </div>
  44. </div>
  45.  
  46. @endsection
  47.  
  48. @section('scripts')
  49.  
  50. <script type="text/javascript">
  51.     $(document).ready(function(){
  52.  
  53.         $('.btn-refresh').click(function(e){
  54.             e.preventDefault();
  55.             location.reload();
  56.         })
  57.  
  58.     })
  59. </script>
  60.  
  61. @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement