Commit b6a5f150 by Agrifina

edit value text box halaman edit client

parent eb7bc7ce
......@@ -49,11 +49,11 @@ class clientController extends Controller
if ($search){
$hasil = Client::find($nama);
$hasil = Client::find($nama);
$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
<table>
<thead>
<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>
<div class="input-group">
......@@ -19,36 +19,36 @@ Edit Client
</label>
</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>
</td>
</tr>
<tr>
<td><th><label class="col-md-4 control-label" for="nama">NAMA</th></td>
<td><input type="text" name="nama" class="form-control" placeholder="Masukkan nama" required/></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" value="{{$data->nama}}" required/></td>
</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
<input type= "radio" name= "jeniskelamin" value="Wanita" id="jeniskelamin_1">Wanita
</td>
</tr>
<tr>
<td><th><label class="col-md-4 control-label" for="tanggallahir">TANGGAL LAHIR</th></td>
<td><input type="text" name="tanggallahir" class="form-control" placeholder="Masukkan Tanggal Lahir" required/></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" value="{{$data->tanggallahir}}" required/></td>
</tr>
<tr>
<td><th><label class="col-md-4 control-label" for="provinsi">PROVINSI</th></td>
<td><input type="text" name="provinsi" class="form-control" placeholder="Masukkan Provinsi" required/></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" value="{{$data->provinsi}}" required/></td>
</tr>
<tr>
<td><th><label class="col-md-4 control-label" for="distrik">DISTRIK</th></td>
<td><input type="text" name="distrik" class="form-control" placeholder="Masukkan Distrik" required/></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" value="{{$data->distrik}}" required/></td>
</tr>
<tr>
<td><th><label class="col-md-4 control-label" for="sektor">SEKTOR</th></td>
<td><input type="text" name="sektor" class="form-control" placeholder="Masukkan Sektor" required/></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" value="{{$data->sektor}}"required/></td>
</tr>
</thead>
</table>
......
......@@ -8,7 +8,7 @@
<body>
<div align="center">
<h1 >@yield('judul')</h1>
<h1 >@yield('judul')</h1>
</div>
<hr>
<div class="row">
......@@ -29,23 +29,23 @@
</div>
<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')
</div>
</div>
</div>
<br>
<br>
<div align="center" class="col-md-8 col-md-offset-2">
<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>
</div>
<br><br>
<br>
<div align="center" class="col-md-8 col-md-offset-2">
<a href="{{ url ('/client') }}" class="btn btn-success">
<div align="center" class="col-md-8 col-md-offset-2">
<a href="{{ url ('/client') }}" class="btn btn-success">
<i class="glyphicon glyphicon-home"></i> Home
</a>
</div>
</a>
</div>
<br><br>
<hr>
<footer >
......
@extends('layout')
@section('judul')
Tambah Client
@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