fadlyshafa

Untitled

Feb 13th, 2020
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.64 KB | None | 0 0
  1. @extends('dashboard.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.                 </p>
  13.             </div>
  14.             <div class="box-body">
  15.                
  16.                 <div class="table-responsive">
  17.                     <table class="table table-hover">
  18.                         <thead>
  19.                             <tr>
  20.                                 <th>#</th>
  21.                                 <th>name</th>
  22.                                 <th>nisn</th>
  23.                                 <th>email</th>
  24.                                 <th>id registrasi</th>
  25.                                 <th>no hp</th>
  26.                                 <th>alamat</th>
  27.                                 <th>is melengkapi??</th>
  28.                             </tr>
  29.                         </thead>
  30.                         <tbody>
  31.                             @foreach($data as $e=>$dt)
  32.                             <tr>
  33.                                 <td>{{ $e+1 }}</td>
  34.                                 <td>{{ $dt->name }}</td>
  35.                                 <td>{{ $dt->nisn }}</td>
  36.                                 <td>{{ $dt->email }}</td>
  37.                                 <td>{{ $dt->id_registrasi }}</td>
  38.                                 <td>{{ $dt->biodata_r->no_hp }}</td>
  39.                                 <td>{{ $dt->biodata_r->alamat }}</td>
  40.                                 @if($dt->biodata_r_count > 0)
  41.                                 <td>
  42.                                     <label class="label label-success">Sudah Melengkapi</label>
  43.                                 </td>
  44.                                 @else
  45.                                 <td>
  46.                                     <label class="label label-danger">Belum Melengkapi</label>
  47.                                 </td>
  48.                                 @endif
  49.                             </tr>
  50.                             @endforeach
  51.                         </tbody>
  52.                     </table>
  53.                 </div>
  54.  
  55.             </div>
  56.         </div>
  57.     </div>
  58. </div>
  59.  
  60. @endsection
  61.  
  62. @section('scripts')
  63.  
  64. <script type="text/javascript">
  65.     $(document).ready(function(){
  66.  
  67.         // btn refresh
  68.         $('.btn-refresh').click(function(e){
  69.             e.preventDefault();
  70.             $('.preloader').fadeIn();
  71.             location.reload();
  72.         })
  73.  
  74.     })
  75. </script>
  76.  
  77. @endsection
Add Comment
Please, Sign In to add comment