fadlyshafa

Untitled

Jan 13th, 2020
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.42 KB | None | 0 0
  1. @extends('layouts.master')
  2.  
  3. @section('content')
  4.  
  5. <div class="row">
  6.     <div class="col-md-12">
  7.         <h4>{{ $title }}</h4>
  8.         <div class="box box-warning">
  9.             <div class="box-header">
  10.                 <p>
  11.                     <button class="btn btn-sm btn-flat btn-warning btn-refresh"><i class="fa fa-refresh"></i> Refresh</button>
  12.  
  13.                     <a href="{{ url('status-pembayaran/add') }}" class="btn btn-sm btn-flat btn-primary"><i class="fa fa-plus"></i> Tambah Data</a>
  14.                 </p>
  15.             </div>
  16.             <div class="box-body">
  17.                
  18.                 <div class="table-responsive">
  19.                     <table class="table table-hover myTable">
  20.                         <thead>
  21.                             <tr>
  22.                                 <th>action</th>
  23.                                 <th>nama</th>
  24.                                 <th>created at</th>
  25.                                 <th>updated at</th>
  26.                             </tr>
  27.                         </thead>
  28.                         <tbody>
  29.                             @foreach($data as $dt)
  30.                             <tr>
  31.                                 <td>
  32.                                     <div style="width:60px">
  33.                                         <a href="{{ url('status-pembayaran/'.$dt->id) }}" class="btn btn-warning btn-xs btn-edit" id="edit"><i class="fa fa-pencil-square-o"></i></a>
  34.  
  35.                                         <button href="{{ url('status-pembayaran/'.$dt->id) }}" class="btn btn-danger btn-xs btn-hapus" id="delete"><i class="fa fa-trash-o"></i></button>
  36.                                     </div>
  37.                                 </td>
  38.                                 <td>{{ $dt->nama }}</td>
  39.                                 <td>{{ $dt->created_at }}</td>
  40.                                 <td>{{ $dt->updated_at }}</td>
  41.                             </tr>
  42.                             @endforeach
  43.                         </tbody>
  44.                     </table>
  45.                 </div>
  46.  
  47.             </div>
  48.         </div>
  49.     </div>
  50. </div>
  51.  
  52. @endsection
  53.  
  54. @section('scripts')
  55.  
  56. <script type="text/javascript">
  57.     $(document).ready(function(){
  58.  
  59.         // btn refresh
  60.         $('.btn-refresh').click(function(e){
  61.             e.preventDefault();
  62.             $('.preloader').fadeIn();
  63.             location.reload();
  64.         })
  65.  
  66.     })
  67. </script>
  68.  
  69. @endsection
Add Comment
Please, Sign In to add comment