Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Form Kelas</title>
- </head>
- <body>
- @if(session('error'))
- <div class="alert alert-error">
- {{ session('error') }}
- </div>
- @endif
- @if(count($errors) > 0 )
- <div class="alert alert-danger">
- <strong>Perhatian</strong><br>
- <ul>
- @foreach($errors->all() as $error)
- <li>{{ $error }}</li>
- @endforeach
- </ul>
- </div>
- @endif
- <form action="{{ url('kelas', @$kelas->id) }}" method="POST">
- @csrf
- @if(!empty($kelas))
- @method('PATCH')
- @endif
- <table>
- <tr>
- <td>Kelas :</td>
- <td><input type="text" name="nama_kelas" autocomplete="off" value="{{ old('nama_kelas', @$kelas->nama_kelas) }}"></td>
- </tr>
- <tr>
- <td>Jurusan :</td>
- <td><input type="text" name="jurusan" autocomplete="off" value="{{ old('jurusan', @$kelas->jurusan) }}"></td>
- </tr>
- <tr>
- <td>Ruangan :</td>
- <td><input type="text" name="lokasi_ruangan" autocomplete="off" value="{{ old('lokasi_ruangan', @$kelas->lokasi_ruangan) }}"></td>
- </tr>
- <tr>
- <td>wali kelas :</td>
- <td><input type="text" name="wali_kelas" autocomplete="off" value="{{ old('wali_kelas', @$kelas->wali_kelas) }}"></td>
- </tr>
- <tr>
- <td><input type="submit" value="Add"></td>
- </tr>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement