Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @extends('layout')
- @section('judul')
- Daftar User
- @endsection
- @section('konten')
- <center>
- <table id="data" class="table table-cell">
- <thead style="background-color: #00c0ef;">
- <center>
- <tr style="color: #fff;">
- <th>ID</th>
- <th>Nama</th>
- <th>Details</th>
- <th>Edit</th>
- <th>Hapus</th>
- </tr>
- </center>
- </thead>
- <tbody>
- @foreach($data as $a)
- <center>
- <tr>
- <td>{{ $a->id }}</td>
- <td>{{ $a->nama }}</td>
- <td><a href="{{ url('user/'.$a->id) }}" class="btn btn-primary"><i class="glyphicon glyphicon-eye-open"></i></a></td>
- <td><a href="{{ url('user/'.$a->id.'/edit') }}" class="btn btn-primary"><i class="glyphicon glyphicon-edit"></i></a></td>
- <td>
- <form action="{{ url('user/'.$a->id) }}" method="post">
- {{ csrf_field()}}
- <input type="hidden" name="_method" value="DELETE">
- <button type="submit" class="btn btn-danger"><i class="glyphicon glyphicon-trash"></i></button>
- </form>
- </td>
- </center>
- </tr>
- @endforeach
- </tbody>
- </table>
- </center>
- @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement