Commit b6a5f150 by Agrifina

edit value text box halaman edit client

parent eb7bc7ce
...@@ -49,11 +49,11 @@ class clientController extends Controller ...@@ -49,11 +49,11 @@ class clientController extends Controller
if ($search){ if ($search){
$hasil = Client::find($nama); $hasil = Client::find($nama);
$data = $hasil->where('nama', 'LIKE', '%'. $search .'%')->get(); $data = $hasil->where('nama', 'LIKE', '%'. $search .'%')->get();
return view('detailclient')->with('data', $data); return view('detailclient')->with('data', $data);
} }
} }
} }
...@@ -10,7 +10,7 @@ Edit Client ...@@ -10,7 +10,7 @@ Edit Client
<table> <table>
<thead> <thead>
<tr> <tr>
<td><th><label class="col-md-4 control-label" for="image">IMAGE</label> </th></td> <td><th><label class="col-md-6 control-label" for="image">IMAGE</label> </th></td>
<td> <td>
<div class="input-group"> <div class="input-group">
...@@ -19,36 +19,36 @@ Edit Client ...@@ -19,36 +19,36 @@ Edit Client
</label> </label>
</span> </span>
<input type="text" class="form-control input-md" id="i" name="i" placeholder="not file selected" disabled="true"> <input type="text" class="form-control input-md" id="i" name="i" value="{{$data->image}}" placeholder="not file selected" disabled="true">
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><th><label class="col-md-4 control-label" for="nama">NAMA</th></td> <td><th><label class="col-md-6 control-label" for="nama">NAMA</th></td>
<td><input type="text" name="nama" class="form-control" placeholder="Masukkan nama" required/></td> <td><input type="text" name="nama" class="form-control" placeholder="Masukkan nama" value="{{$data->nama}}" required/></td>
</tr> </tr>
<tr> <tr>
<td><th><label class="col-md-4 control-label" for="jeniskelamin">JENIS KELAMIN</th></td> <td><th><label class="col-md-6 control-label" for="jeniskelamin">JENIS KELAMIN</th></td>
<td><input type= "radio" name= "jeniskelamin" value="Pria" id="jeniskelamin_0">Pria <td><input type= "radio" name= "jeniskelamin" value="Pria" id="jeniskelamin_0">Pria
<input type= "radio" name= "jeniskelamin" value="Wanita" id="jeniskelamin_1">Wanita <input type= "radio" name= "jeniskelamin" value="Wanita" id="jeniskelamin_1">Wanita
</td> </td>
</tr> </tr>
<tr> <tr>
<td><th><label class="col-md-4 control-label" for="tanggallahir">TANGGAL LAHIR</th></td> <td><th><label class="col-md-6 control-label" for="tanggallahir">TANGGAL LAHIR</th></td>
<td><input type="text" name="tanggallahir" class="form-control" placeholder="Masukkan Tanggal Lahir" required/></td> <td><input type="text" name="tanggallahir" class="form-control" placeholder="Masukkan Tanggal Lahir" value="{{$data->tanggallahir}}" required/></td>
</tr> </tr>
<tr> <tr>
<td><th><label class="col-md-4 control-label" for="provinsi">PROVINSI</th></td> <td><th><label class="col-md-6 control-label" for="provinsi">PROVINSI</th></td>
<td><input type="text" name="provinsi" class="form-control" placeholder="Masukkan Provinsi" required/></td> <td><input type="text" name="provinsi" class="form-control" placeholder="Masukkan Provinsi" value="{{$data->provinsi}}" required/></td>
</tr> </tr>
<tr> <tr>
<td><th><label class="col-md-4 control-label" for="distrik">DISTRIK</th></td> <td><th><label class="col-md-6 control-label" for="distrik">DISTRIK</th></td>
<td><input type="text" name="distrik" class="form-control" placeholder="Masukkan Distrik" required/></td> <td><input type="text" name="distrik" class="form-control" placeholder="Masukkan Distrik" value="{{$data->distrik}}" required/></td>
</tr> </tr>
<tr> <tr>
<td><th><label class="col-md-4 control-label" for="sektor">SEKTOR</th></td> <td><th><label class="col-md-6 control-label" for="sektor">SEKTOR</th></td>
<td><input type="text" name="sektor" class="form-control" placeholder="Masukkan Sektor" required/></td> <td><input type="text" name="sektor" class="form-control" placeholder="Masukkan Sektor" value="{{$data->sektor}}"required/></td>
</tr> </tr>
</thead> </thead>
</table> </table>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<body> <body>
<div align="center"> <div align="center">
<h1 >@yield('judul')</h1> <h1 >@yield('judul')</h1>
</div> </div>
<hr> <hr>
<div class="row"> <div class="row">
...@@ -29,23 +29,23 @@ ...@@ -29,23 +29,23 @@
</div> </div>
<div class="row" align ="center"> <div class="row" align ="center">
<div class="col-md-8 col-md-offset-2"> <div class="col-md-8 col-md-offset-2">
@yield('konten') @yield('konten')
</div> </div>
</div> </div>
<br> <br>
<div align="center" class="col-md-8 col-md-offset-2"> <div align="center" class="col-md-8 col-md-offset-2">
<a href="{{ url ('/client/create') }}" class="btn btn-success"> <a href="{{ url ('/client/create') }}" class="btn btn-success">
<i class="glyphicon glyphicon-plus"></i> Tambah Client <i class="glyphicon glyphicon-plus"></i> Tambah Client
</a> </a>
</div> </div>
<br><br> <br><br>
<br> <br>
<div align="center" class="col-md-8 col-md-offset-2"> <div align="center" class="col-md-8 col-md-offset-2">
<a href="{{ url ('/client') }}" class="btn btn-success"> <a href="{{ url ('/client') }}" class="btn btn-success">
<i class="glyphicon glyphicon-home"></i> Home <i class="glyphicon glyphicon-home"></i> Home
</a> </a>
</div> </div>
<br><br> <br><br>
<hr> <hr>
<footer > <footer >
......
@extends('layout')
@section('judul') @section('judul')
Tambah Client Tambah Client
@endsection @endsection
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment