Skip to content

Commit

Permalink
resolve #3
Browse files Browse the repository at this point in the history
Sebagai Polantas, dapat melihat detail suatu perempatan lalu lintas dimana pada detail tersebut bisa melihat kondisi kemacetan
  • Loading branch information
ahmadsambangst authored Apr 23, 2021
1 parent 0d85a9d commit e863fa7
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions editperempatan.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!doctype html>
<html lang="en">

<head>
@include("layout.head")
</head>

<body>
@include("layout.nav-admin")
<div class="container mt-4">
<form method="post" action="{{route("editperempatan")}}">
@csrf
<input type="hidden" name="id" value="{{$perempatan->id}}">
<div class="mb-3">
<label for="a" class="form-label">Nama</label>
<input name="nama" value="{{$perempatan->nama}}" type="text" class="form-control" id="a">
</div>
<div class="mb-3">
<label for="a" class="form-label">Tingkat Macet</label>
<select required name="tingkatmacet" class="form-select" aria-label="Default select example">
<option value="rendah" {{($perempatan->tingkatmacet == "rendah") ? "selected":""}}>Rendah</option>
<option value="sedang" {{($perempatan->tingkatmacet == "sedang") ? "selected":""}}>Sedang</option>
<option value="tinggi" {{($perempatan->tingkatmacet == "tinggi") ? "selected":""}}>Tinggi</option>
</select>
</div>
<div class="mb-3">
<label for="a" class="form-label">Maks Kecepatan (km/h)</label>
<input name="kecepatanmaks" value="{{$perempatan->kecepatanmaks}}" type="number" class="form-control" id="a">
</div>
<button type="submit" class="btn btn-primary">Edit</button>
</form>
</div>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous"></script>
</body>

</html>

0 comments on commit e863fa7

Please sign in to comment.