Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Laravel
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PabweHATA
Laravel
Commits
b6a5f150
Commit
b6a5f150
authored
Nov 26, 2016
by
Agrifina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit value text box halaman edit client
parent
eb7bc7ce
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
26 deletions
+26
-26
clientController.php
app/Http/Controllers/clientController.php
+3
-3
editclient.blade.php
resources/views/editclient.blade.php
+13
-13
layout.blade.php
resources/views/layout.blade.php
+9
-9
tambahclient.blade.php
resources/views/tambahclient.blade.php
+1
-1
No files found.
app/Http/Controllers/clientController.php
View file @
b6a5f150
...
...
@@ -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
);
}
}
}
resources/views/editclient.blade.php
View file @
b6a5f150
...
...
@@ -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>
...
...
resources/views/layout.blade.php
View file @
b6a5f150
...
...
@@ -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
>
...
...
resources/views/tambahclient.blade.php
View file @
b6a5f150
@
extends
(
'layout'
)
@
section
(
'judul'
)
Tambah
Client
@
endsection
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment