Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Table Class</title>
- </head>
- <body>
- <h1>Data Kelas</h1>
- @if(session('success'))
- <div class="alert alert-success">
- {{ session('success') }}
- </div>
- @endif
- @if(session('error'))
- <div class="alert alert-error">
- {{ session('error') }}
- </div>
- @endif
- <a href="{{ url('kelas/inputdata') }}">Input data ?</a>
- <table border="1px">
- <tr>
- <th>Nama Kelas</th>
- <th>Jurusan</th>
- <th>Wali Kelas</th>
- <th>Ruangan</th>
- <th>Aksi</th>
- </tr>
- @foreach ($kelas as $dataKelas)
- <tr>
- <td>{{ $dataKelas->nama_kelas }}</td>
- <td>{{ $dataKelas->jurusan }}</td>
- <td>{{ $dataKelas->wali_kelas }}</td>
- <td>{{ $dataKelas->lokasi_ruangan }}</td>
- <td>
- <a href="{{ url('/kelas/'. $dataKelas->id . '/edit') }}">Edit|</a>
- <form action="{{ url('/kelas', $dataKelas->id) }}" method="POST">
- @method('DELETE')
- @csrf
- <button type="submit">Delete</button>
- </form>
- </td>
- </tr>
- @endforeach
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement